Add tests for multiple renames.
This commit is contained in:
committed by
J Henry Waugh
parent
dbfd3df810
commit
397acb4fce
17
codegen/ui_tests/rhai_fn_rename_collision_with_itself.stderr
Normal file
17
codegen/ui_tests/rhai_fn_rename_collision_with_itself.stderr
Normal file
@@ -0,0 +1,17 @@
|
||||
error: duplicate Rhai signature for 'foo'
|
||||
--> $DIR/rhai_fn_rename_collision_with_itself.rs:12:15
|
||||
|
|
||||
12 | #[rhai_fn(name = "foo", name = "bar", name = "foo")]
|
||||
| ^^^^
|
||||
|
||||
error: duplicated function renamed 'foo'
|
||||
--> $DIR/rhai_fn_rename_collision_with_itself.rs:12:15
|
||||
|
|
||||
12 | #[rhai_fn(name = "foo", name = "bar", name = "foo")]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_collision_with_itself.rs:20:8
|
||||
|
|
||||
20 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
Reference in New Issue
Block a user