Files
kotlin-fork/compiler/testData/diagnostics/tests/samConversions/sameCandidatesFromKotlinAndJavaInOneScope.fir.kt
T
2020-01-29 11:09:28 +03:00

26 lines
540 B
Kotlin
Vendored

// !LANGUAGE: +NewInference +SamConversionForKotlinFunctions +SamConversionPerArgument
// !DIAGNOSTICS: -UNUSED_PARAMETER,-UNUSED_VARIABLE
// FILE: Action.java
public interface Action<T> {
void execute(T t);
}
// FILE: Other.java
// It's important that this is Java
public interface Other {
void pluginManagement(Action<? super Number> pluginManagementSpec);
}
// FILE: test.kt
interface B {
fun pluginManagement(block: Number.() -> Unit): Unit {}
}
interface C : B, Other
fun test(c: C) {
c.pluginManagement {
}
}