Why is the following not allowed? ``` sealed clas...
# announcements
d
Why is the following not allowed?
Copy code
sealed class Outer {
  data class Inner1(val value: Int) : Outer()
  data class Inner2(val value: String) : Outer()
}

typealias OuterAlias = Outer

fun main() {
   val i = OuterAlias.Inner1(3) // gives an error "Unresoved reference: Inner1"
}
If typealias is just an alias the above should be possible I guess.
g
Also saw this, because of this limitation I couldn't deprecate old name of an inner class and use typealias for that But I never created any issues about this
d
OK, I'll try to create one once I have time!