Enforce signatures on user get/set/index functions
This commit is contained in:
11
codegen/ui_tests/rhai_fn_getter_signature.stderr
Normal file
11
codegen/ui_tests/rhai_fn_getter_signature.stderr
Normal file
@@ -0,0 +1,11 @@
|
||||
error: property getter requires exactly 1 argument
|
||||
--> $DIR/rhai_fn_getter_signature.rs:13:9
|
||||
|
|
||||
13 | pub fn test_fn(input: Point, value: bool) -> bool {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
--> $DIR/rhai_fn_getter_signature.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n, true) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
Reference in New Issue
Block a user