Enable DefinitelyNotNullTypeParameters since 1.7
^KT-26245 In Progress
This commit is contained in:
committed by
teamcityserver
parent
c1b5d5551f
commit
9e6af52e1f
+1
-1
@@ -67,7 +67,7 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
|
||||
fun testLanguageVersion(gradleVersion: GradleVersion) {
|
||||
project("languageVersion", gradleVersion) {
|
||||
buildAndFail("build") {
|
||||
assertOutputContains("The feature \"definitely not null type parameters\" is only available since language version 1.6")
|
||||
assertOutputContains("Suspend function type is not allowed as supertypes")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
fun <T> f(t: T): T!! = t!!
|
||||
interface A : suspend () -> Unit
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
fun <T> f(t: T): T!! = t!!
|
||||
interface A : suspend () -> Unit
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
|
||||
|
||||
assertBuildLogHasLine("[INFO] BUILD FAILURE");
|
||||
assertBuildLogHasLineThatContains("The feature \"definitely not null type parameters\" is only available since language version 1.6");
|
||||
assertBuildLogHasLineThatContains("Suspend function type is not allowed as supertypes");
|
||||
|
||||
Reference in New Issue
Block a user