Switch kotlin version to 1.8

with appropriate fixes in testdata, tests and other
places.
This commit is contained in:
Ilya Chernikov
2022-06-09 17:07:50 +02:00
parent 7fa459044f
commit bb996c1b27
179 changed files with 1038 additions and 978 deletions
+1 -3
View File
@@ -1,13 +1,11 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: RETURN_TYPE_MISMATCH on toOptional: expected Optional<T>, actual @EN Optional<@EN T & Any>
// IGNORE_BACKEND: ANDROID
// JVM_TARGET: 1.8
// FULL_JDK
import java.util.Optional
fun <T> T?.toOptional(): Optional<T> = Optional.ofNullable(this)
fun <T> T?.toOptional(): Optional<T & Any> = Optional.ofNullable(this)
fun box(): String {
return "OK".toOptional().get()