In this code ```sealed class Parent() { data cla...
# announcements
d
In this code
Copy code
sealed 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
?