401f0ac583
"// TARGET_BACKEND: JVM" more clearly says that the test is JVM-specific, rather than DONT_TARGET_EXACT_BACKEND which excludes all other backends.
21 lines
381 B
Kotlin
Vendored
21 lines
381 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// MODULE: lib
|
|
// FILE: GenericInterface.java
|
|
|
|
interface GenericInterface<T> {
|
|
public T foo(double d, int i, long j, short s);
|
|
}
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: 1.kt
|
|
|
|
internal fun getInterface(): GenericInterface<String> {
|
|
return GenericInterface { d, i, j, s ->
|
|
"OK"
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return getInterface().foo(0.0, 0, 0, 0)
|
|
}
|