codegen: add rhai_mod and submodule support

This commit is contained in:
J Henry Waugh
2020-08-20 22:20:12 -05:00
parent 38a6c15da1
commit 7962c6dc52
15 changed files with 852 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
error: requires value
--> $DIR/rhai_mod_missing_value.rs:11:12
|
11 | #[rhai_mod(name)]
| ^^^^
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
--> $DIR/rhai_mod_missing_value.rs:24:8
|
24 | if test_module::test_fn(n) {
| ^^^^^^^^^^^ use of undeclared type or module `test_module`