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
module std::modules {
enumS1 { Inner }
enumS2<phantomT> { One }
funmain(s: S2<u8>) {
// crashes the compiler// s is u8;// s is S1;// s is S2<S1>;// s is S2<S1::Inner>;// fails with parser error// s is S2<u8>::One;// s is S2<S1::Inner>::One;// warns on no type argument (but it could actually be inferred from the context)
s is One;
s is S2::One;
}
}
System information
Aptos CLI 6.1.1
The text was updated successfully, but these errors were encountered:
mkurnikov
changed the title
[Bug] Issues with is operator and enums with type paramaters
[Bug][compiler-v2] Issues with is operator and enums with type paramaters
Feb 27, 2025
🐛 Bug
System information
Aptos CLI 6.1.1
The text was updated successfully, but these errors were encountered: