David Smith
06/14/2021, 10:56 AMsealed class Parent() {
data class Child(val value : String) : Parent()
}
data class Other(val value : Parent)
val child = Child("something")
Other(child as Parent)
I get an “Unchecked cast” warning. How is this so, surely the compiler knows that the Child is also a Parent?