Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt11733_1.kt
T

18 lines
374 B
Kotlin
Vendored

// FIR_IDENTICAL
// !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(x: Predicate<String>) {}
fun main() {
process(Predicate { x -> x checkType { _<String>() }
true
})
}