We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5eb65 commit 35917f0Copy full SHA for 35917f0
assets/tests/globals/type_cache_available.rhai
@@ -0,0 +1,5 @@
1
+fn on_test() {
2
+ let my_type = types.TestResource;
3
+ assert(type_of(my_type) != "()", "Type TestResource is not available in type cache");
4
+ assert(my_type.short_name.call() == "TestResource", "Type t.TestResource:short_name() is not correct: " + my_type.short_name.call());
5
+}
0 commit comments