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
+1
-1
@@ -2,4 +2,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+DefinitelyNotNullTypeParameters
|
||||
package test
|
||||
|
||||
fun <T> foo(x: T!!, y: List<T!!>, z: (T!!) -> T!!): T!! = x
|
||||
fun <T> foo(x: T & Any, y: List<T & Any>, z: (T & Any) -> T & Any): T & Any = x
|
||||
|
||||
Reference in New Issue
Block a user