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
KotlinIsland
changed the title
(π) No error when assigning to a union of two types with different type parameters
(π) No error when assigning to a member of a union that has different types in each part of the union
Aug 22, 2022
Bug Report
π Search Terms
union
container
assignment
π Version & Regression Information
v4.8.0-beta
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
No error when assigning a
string
to the incompatible item of the union (number
)π Expected behavior
An error regarding the invalid assignment.
The text was updated successfully, but these errors were encountered: