832f468b13
#KT-11733 Fixed
15 lines
286 B
Kotlin
Vendored
15 lines
286 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
interface Predicate<T>
|
|
|
|
fun <T> Predicate(<!UNUSED_PARAMETER!>x<!>: (T?) -> Boolean): Predicate<T> = null!!
|
|
|
|
fun foo() {
|
|
process(Predicate {
|
|
x -> x checkType { _<String?>() }
|
|
|
|
true
|
|
})
|
|
}
|
|
|
|
fun process(<!UNUSED_PARAMETER!>x<!>: Predicate<String>) {} |