Fix AntTaskTestGenerated.testLanguageVersion for 1.6

This commit is contained in:
Alexander Udalov
2021-07-21 19:36:03 +02:00
committed by Mikhael Bogdanov
parent 6af042c1dd
commit 2d0d83a54b
3 changed files with 5 additions and 6 deletions
@@ -3,10 +3,9 @@ Buildfile: [TestData]/build.xml
build:
[kotlinc] Compiling [[TestData]/main.kt] => [[Temp]/hello.jar]
[kotlinc] warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
[kotlinc] [TestData]/main.kt:4:21: error: 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop
[kotlinc] true -> break
[kotlinc] ^
[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] ^
ERR:
@@ -3,7 +3,7 @@
<target name="build">
<kotlinc src="${test.data}/main.kt" output="${temp}/hello.jar">
<compilerarg line="-language-version 1.3"/>
<compilerarg line="-language-version 1.5"/>
</kotlinc>
</target>
</project>
@@ -1 +1 @@
sealead interface Test
fun <T> f(t: T): T!! = t!!