0328fcaf5d
...with dynamic type checks, except for the `@PlatformDependent` methods, for which the JVM backend adds null checks.
13 lines
239 B
Kotlin
Vendored
13 lines
239 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: A.java
|
|
public class A {
|
|
public static A nil() { return null; }
|
|
}
|
|
|
|
// FILE: test.kt
|
|
fun box(): String {
|
|
val m = mapOf<A, String>()
|
|
return if (A.nil() in m.keys) "Fail" else "OK"
|
|
}
|