15 lines
240 B
Kotlin
Vendored
15 lines
240 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
interface Predicate<T>
|
|
|
|
fun <T> Predicate(x: (T?) -> Boolean): Predicate<T> = null!!
|
|
|
|
fun foo() {
|
|
process(Predicate {
|
|
x -> x checkType { _<String?>() }
|
|
|
|
true
|
|
})
|
|
}
|
|
|
|
fun process(x: Predicate<String>) {} |