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
The generated union code does not take into account the shadowed name:
publicsealedclassFoo {
publicdata classFoo(valvalue:Boolean)
publicfunasFoo(): Boolean= (thisasFoo.Foo).value // Compilation error: `Foo` (the data class) has no member `Foo`
}
The problem is likely in UnionGenerator's handling of symbols.
Expected behavior
Code should be generated correctly for a union that has a member of the same name
Current behavior
Code is generated incorrectly and fails to compile