c62e4b4fcf
* Move FinallyBlockLowering to common part * Fix catching of dynamic exception * Fix bridges for suspend functions * Disable explicit cast to Unit * Run lowering per module * Update some test data
20 lines
294 B
Kotlin
Vendored
20 lines
294 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
fun foo() {}
|
|
|
|
class A {
|
|
fun bar() = ""
|
|
}
|
|
|
|
fun Int.baz() = this
|
|
|
|
fun box(): String {
|
|
assertEquals("foo", ::foo.name)
|
|
assertEquals("bar", A::bar.name)
|
|
assertEquals("baz", Int::baz.name)
|
|
return "OK"
|
|
}
|