Add tests for obsolete issues

#KT-12008 Obsolete
 #KT-11881 Obsolete
 #KT-10822 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2018-09-11 12:34:09 +03:00
parent 58442899b8
commit 66a00f442c
12 changed files with 217 additions and 0 deletions
@@ -0,0 +1,12 @@
// 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)
}
}