mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
10 lines
205 B
Kotlin
Vendored
10 lines
205 B
Kotlin
Vendored
// 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"
|
|
}
|