https://kotlinlang.org logo
#feed
Title
# feed
n

nfrankel

02/20/2022, 5:00 PM
r

russhwolf

02/20/2022, 7:24 PM
The limitation is we need to define all subclasses of a sealed class in the same file.
This restriction was loosened in Kotlin 1.5 and now sealed subclasses can be in separate files in the same package https://kotlinlang.org/docs/whatsnew15.html#package-wide-sealed-class-hierarchies
👍 3
🤝 1
n

nfrankel

02/21/2022, 12:28 PM
thanks @russhwolf i fixed it
👍 1
6 Views