From 2d0d83a54be95196f5223405e9e475092b0945e2 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Wed, 21 Jul 2021 19:36:03 +0200 Subject: [PATCH] Fix AntTaskTestGenerated.testLanguageVersion for 1.6 --- .../integration/ant/jvm/languageVersion/build.log.expected | 7 +++---- .../testData/integration/ant/jvm/languageVersion/build.xml | 2 +- .../testData/integration/ant/jvm/languageVersion/main.kt | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/compiler/testData/integration/ant/jvm/languageVersion/build.log.expected b/compiler/testData/integration/ant/jvm/languageVersion/build.log.expected index a1349b956cb..fc053c895a7 100644 --- a/compiler/testData/integration/ant/jvm/languageVersion/build.log.expected +++ b/compiler/testData/integration/ant/jvm/languageVersion/build.log.expected @@ -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 f(t: T): T!! = t!! + [kotlinc] ^ ERR: diff --git a/compiler/testData/integration/ant/jvm/languageVersion/build.xml b/compiler/testData/integration/ant/jvm/languageVersion/build.xml index afe98b29f27..9f4bbd0ff11 100644 --- a/compiler/testData/integration/ant/jvm/languageVersion/build.xml +++ b/compiler/testData/integration/ant/jvm/languageVersion/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/jvm/languageVersion/main.kt b/compiler/testData/integration/ant/jvm/languageVersion/main.kt index dd4ae569e3d..c05159a0aef 100644 --- a/compiler/testData/integration/ant/jvm/languageVersion/main.kt +++ b/compiler/testData/integration/ant/jvm/languageVersion/main.kt @@ -1 +1 @@ -sealead interface Test \ No newline at end of file +fun f(t: T): T!! = t!!