aea5e3ffbc
Instead, determine whether the return type of a call is Nothing, by looking at the type of the call expression.
11 lines
216 B
Kotlin
Vendored
11 lines
216 B
Kotlin
Vendored
public abstract class AbstractClass<T> {
|
|
public abstract val some: T
|
|
}
|
|
|
|
public class Class: AbstractClass<String>() {
|
|
public override val some: String
|
|
get() = "OK"
|
|
}
|
|
|
|
fun box(): String = Class().some
|