ugh.... :cry: why this doesn't work ```class Wrapp...
# announcements
d
ugh.... 😢 why this doesn't work
Copy code
class Wrapper {
    sealed class Whatever {
        abstract val name: String
    }

    data class First(override val name: String, val first: String) : Whatever() // constructor is private....
}
m
It will in Kotlin 1.5. But doesn’t for now.
n
it'd work if it wasn't inside the wrapper class theoretically, right?
👌 2
d
guess might have to wait for 1.5 to release
d
You can try it with 1.4.30 compiler by enabling
-language-version 1.5
. This compiler flags enables preview of new features from 1.5 release