aea5e3ffbc
Instead, determine whether the return type of a call is Nothing, by looking at the type of the call expression.
8 lines
159 B
Kotlin
Vendored
8 lines
159 B
Kotlin
Vendored
open class Bar<T>(val prop: String)
|
|
object Foo : Bar<Foo>("OK") {
|
|
|
|
val p = Foo.prop
|
|
val p2 = prop
|
|
val p3 = this.prop
|
|
}
|
|
fun box(): String = Foo.prop |