c2fc633ad6
It's required as now there are no synthetic candidates
17 lines
558 B
Plaintext
Vendored
17 lines
558 B
Plaintext
Vendored
import java.util.*
|
|
|
|
fun use(v: Optional<String>) {
|
|
v.ifPresent { value -> }
|
|
// SUCCESS
|
|
// ORIGINAL: fun ifPresent(Consumer<in T>): Unit defined in java.util.Optional
|
|
// SUBSTITUTED: fun ifPresent(Consumer<in String>): Unit defined in java.util.Optional
|
|
}
|
|
|
|
fun use2(v: Optional<String?>) {
|
|
v.ifPresent { value -> }
|
|
// SUCCESS
|
|
// ORIGINAL: fun ifPresent(Consumer<in T>): Unit defined in java.util.Optional
|
|
// SUBSTITUTED: fun ifPresent(Consumer<in String>): Unit defined in java.util.Optional
|
|
}
|
|
|