17 lines
380 B
Kotlin
Vendored
17 lines
380 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
// FILE: Predicate.java
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public interface Predicate<T extends CharSequence> {
|
|
// Same effect with @Nullable here
|
|
boolean invoke(@NotNull T t);
|
|
}
|
|
// FILE: Main.kt
|
|
fun process(<!UNUSED_PARAMETER!>x<!>: Predicate<String>) {}
|
|
fun main() {
|
|
process(Predicate { x -> x checkType { _<String>() }
|
|
true
|
|
})
|
|
}
|