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
Steps to Reproduce
See above model
Possible Solution
No response
Context
No response
Smithy-Kotlin version
1.2.18
Platform (JVM/JS/Native)
JVM
Operating system and version
(n/a)
The text was updated successfully, but these errors were encountered:
Describe the bug
Given a model:
The generated union code does not take into account the shadowed name:
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
Steps to Reproduce
See above model
Possible Solution
No response
Context
No response
Smithy-Kotlin version
1.2.18
Platform (JVM/JS/Native)
JVM
Operating system and version
(n/a)
The text was updated successfully, but these errors were encountered: