Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/inference/kt12008.kt
T
Mikhail Zarechenskiy 66a00f442c Add tests for obsolete issues
#KT-12008 Obsolete
 #KT-11881 Obsolete
 #KT-10822 Obsolete
2018-09-11 12:34:09 +03:00

12 lines
240 B
Kotlin
Vendored

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