Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/inference/kt12008.kt
T

14 lines
235 B
Kotlin
Vendored

// FIR_IDENTICAL
// FULL_JDK
import java.util.*
fun foo(o: Optional<String>) {}
class Test(nullable: String?) {
private val nullableOptional = Optional.ofNullable(nullable)
fun doIt() {
foo(nullableOptional)
}
}