401f0ac583
"// TARGET_BACKEND: JVM" more clearly says that the test is JVM-specific, rather than DONT_TARGET_EXACT_BACKEND which excludes all other backends.
23 lines
408 B
Kotlin
Vendored
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"
|
|
}
|