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
% cat ./third_party/move/move-compiler-v2/tests/more-v1/expansion/use_struct_overlap_with_module.exp
Diagnostics:
warning: unused alias
┌─ tests/more-v1/expansion/use_struct_overlap_with_module.move:7:14
│
7 │ use 0x2::X::{Self, S as X};
│ ^ Unused 'use' of alias 'X'. Consider removing it
error: variants not allowed in this context
┌─ tests/more-v1/expansion/use_struct_overlap_with_module.move:8:27
│
8 │ struct A { f1: X, f2: X::S }
│ ^^^^
It looks like a bug in the name resolution related to structs/variants.
The text was updated successfully, but these errors were encountered:
🐛 Bug
V1 and V2 (when using language V1) both successfully compile the test case use_struct_overlap_with_module.move:
However, when V2 compiler builds for language V2, it yields a weird error message on this case:
It looks like a bug in the name resolution related to structs/variants.
The text was updated successfully, but these errors were encountered: