Kotlin genereert Java 17 code.

This commit is contained in:
Eric Jan Malotaux 2022-04-26 22:05:11 +02:00
parent 181b48aff7
commit db21c01767
2 changed files with 2 additions and 2 deletions

View File

@ -25,5 +25,5 @@ tasks.test {
// config JVM target to 1.8 for kotlin compilation tasks
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.jvmTarget = "17"
}

View File

@ -10,7 +10,7 @@ internal class GildedRoseTest {
val items = arrayOf<Item>(Item("foo", 0, 0))
val app = GildedRose(items)
app.updateQuality()
assertEquals("fixme", app.items[0].name)
assertEquals("foo", app.items[0].name)
}