Is there a way to lock down a sealed class to prev...
# getting-started
r
Is there a way to lock down a sealed class to prevent extensions on it?
r
You can't lock out extensions any more than you can lock out using the class as a parameter, because that's what it gets compiled down to.
Copy code
fun SealedClass.doStuff() {
    ...
}
becomes
Copy code
static void doStuff(SealedClass $receiver) {
    ...
}