Enable DefinitelyNotNullTypeParameters since 1.7
^KT-26245 In Progress
This commit is contained in:
committed by
teamcityserver
parent
c1b5d5551f
commit
9e6af52e1f
@@ -3,9 +3,9 @@ Buildfile: [TestData]/build.xml
|
||||
|
||||
build:
|
||||
[kotlinc] Compiling [[TestData]/main.kt] => [[Temp]/hello.jar]
|
||||
[kotlinc] [TestData]/main.kt:1:18: error: the feature "definitely not null type parameters" is only available since language version 1.6
|
||||
[kotlinc] fun <T> f(t: T): T!! = t!!
|
||||
[kotlinc] ^
|
||||
[kotlinc] [TestData]/main.kt:1:15: error: suspend function type is not allowed as supertypes
|
||||
[kotlinc] interface A : suspend () -> Unit
|
||||
[kotlinc] ^
|
||||
|
||||
ERR:
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
fun <T> f(t: T): T!! = t!!
|
||||
interface A : suspend () -> Unit
|
||||
|
||||
Reference in New Issue
Block a user