Support new form of definitely non-nullable types: T & Any
^KT-26245 In Progress
This commit is contained in:
committed by
teamcityserver
parent
cdd8d1c163
commit
302eacbf59
@@ -17,7 +17,7 @@ public abstract class JClass<T> {
|
||||
|
||||
// FILE: main.kt
|
||||
class KDerived<E> : JClass<E>() {
|
||||
override fun foo(e: E!!) {
|
||||
override fun foo(e: E & Any) {
|
||||
throw RuntimeException("Should not be called")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user