Files
kotlin-fork/compiler/testData/codegen/box/sam/adapters/doubleLongParameters.kt
T
Alexander Udalov 401f0ac583 Use TARGET_BACKEND instead of DONT_TARGET_EXACT_BACKEND in box against Java tests
"// TARGET_BACKEND: JVM" more clearly says that the test is
JVM-specific, rather than DONT_TARGET_EXACT_BACKEND which excludes all
other backends.
2021-02-11 13:50:08 +01:00

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)
}