Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt11733_1.kt
T
2016-04-04 15:31:30 +03:00

16 lines
397 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(args: Array<String>) {
process(Predicate { x -> x checkType { _<String>() }
true
})
}