Switch kotlin version to 1.8
with appropriate fixes in testdata, tests and other places.
This commit is contained in:
+1
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user