Files
kotlin-fork/compiler/testData/codegen/box/sam/differentFqNames.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

23 lines
408 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// MODULE: lib
// FILE: Custom.java
class Custom {
public interface Runnable {
void run2();
}
}
// MODULE: main(lib)
// FILE: 1.kt
fun box(): String {
val f = { }
val class1 = Runnable(f).javaClass
val class2 = Custom.Runnable(f).javaClass
return if (class1 != class2) "OK" else "Same class: $class1"
}