mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
11 lines
235 B
Kotlin
Vendored
11 lines
235 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
fun box(): String {
|
|
fun foo(): Unit {}
|
|
assert(Unit.javaClass.equals(foo().javaClass))
|
|
assert(Unit.javaClass.equals(foo()::class.java))
|
|
return "OK"
|
|
}
|