You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error
--> /home/marcos/Documents/dev/sway3/test/src/e2e_vm_tests/test_programs/should_fail/language/import_star_name_clash/src/main.sw:37:35
|
35 |
36 | // Error: MyEnum is ambiguous
37 | fn bad_enum_project_my_enum_b(e : MyEnum) -> u64 {
| ^^^^^^ Could not find symbol "MyEnum" in this scope.
38 | match e {
39 | // Error - MyEnum::A and MyEnum::B are ambiguous - not reported because the signature is faulty
|
____
error
--> /home/marcos/Documents/dev/sway3/test/src/e2e_vm_tests/test_programs/should_fail/language/import_star_name_clash/src/main.sw:37:35
|
35 |
36 | // Error: MyEnum is ambiguous
37 | fn bad_enum_project_my_enum_b(e : MyEnum) -> u64 {
| ^^^^^^ Unknown type name "MyEnum".
38 | match e {
39 | // Error - MyEnum::A and MyEnum::B are ambiguous - not reported because the signature is faulty
|
To fix this we can make the following method call return the error if there is one to avoid similar errors:
Right now we are getting repeated similar errors:
To fix this we can make the following method call return the error if there is one to avoid similar errors:
sway/sway-core/src/semantic_analysis/type_resolve.rs
Lines 50 to 60 in 192f163
The text was updated successfully, but these errors were encountered: