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