This message was deleted.
# getting-started
s
This message was deleted.
d
Please report an issue kotl.in/issue
y
This looks to be the same issue as KT-51243 I explained a workaround here, but TL;DR: rewrite it to be this:
Copy code
sealed interface TypeWrapper<out A> {
    object IMPL: TypeWrapper<Nothing>
}
operator fun <T> T.invoke(action: context(T) (TypeWrapper<T>) -> Unit) {
    action(this, TypeWrapper.IMPL)
}