Advance explicit Kotlin versions in gradle integration tests
1.0 and 1.1 are no longer supported starting from 1.4, new errors break tests See KT-36146
This commit is contained in:
+6
-6
@@ -451,18 +451,18 @@ class KotlinGradleIT : BaseGradleIT() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check the arguments are always passed if specified explicitly
|
// check the arguments are always passed if specified explicitly
|
||||||
updateBuildGradle("1.0", "1.0")
|
updateBuildGradle("1.2", "1.2")
|
||||||
project.build("clean", "compileKotlin") {
|
project.build("clean", "compileKotlin") {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
assertContains("-language-version 1.0")
|
assertContains("-language-version 1.2")
|
||||||
assertContains("-api-version 1.0")
|
assertContains("-api-version 1.2")
|
||||||
}
|
}
|
||||||
|
|
||||||
updateBuildGradle("1.1", "1.1")
|
updateBuildGradle("1.3", "1.3")
|
||||||
project.build("clean", "compileKotlin") {
|
project.build("clean", "compileKotlin") {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
assertContains("-language-version 1.1")
|
assertContains("-language-version 1.3")
|
||||||
assertContains("-api-version 1.1")
|
assertContains("-api-version 1.3")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ class SimpleKotlinGradleIT : BaseGradleIT() {
|
|||||||
fun testLanguageVersion() {
|
fun testLanguageVersion() {
|
||||||
Project("languageVersion").build("build") {
|
Project("languageVersion").build("build") {
|
||||||
assertFailed()
|
assertFailed()
|
||||||
assertContains("This type is sealed")
|
assertContains("'break' and 'continue' are not allowed in 'when' statements")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -12,7 +12,7 @@ class UpToDateIT : BaseGradleIT() {
|
|||||||
testMutations(
|
testMutations(
|
||||||
*propertyMutationChain(
|
*propertyMutationChain(
|
||||||
"compileKotlin.kotlinOptions.languageVersion",
|
"compileKotlin.kotlinOptions.languageVersion",
|
||||||
"null", "'1.1'", "'1.0'", "null"
|
"null", "'1.3'", "'1.2'", "null"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -22,7 +22,7 @@ class UpToDateIT : BaseGradleIT() {
|
|||||||
testMutations(
|
testMutations(
|
||||||
*propertyMutationChain(
|
*propertyMutationChain(
|
||||||
"compileKotlin.kotlinOptions.apiVersion",
|
"compileKotlin.kotlinOptions.apiVersion",
|
||||||
"null", "'1.1'", "'1.0'", "null"
|
"null", "'1.3'", "'1.2'", "null"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -17,7 +17,7 @@ repositories {
|
|||||||
|
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
languageVersion = "1.0"
|
languageVersion = "1.3"
|
||||||
apiVersion = "1.0"
|
apiVersion = "1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-3
@@ -1,3 +1,7 @@
|
|||||||
sealed class Base
|
fun breakInWhen() {
|
||||||
|
while (true) {
|
||||||
class Derived : Base()
|
when {
|
||||||
|
true -> break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user