2564a2f91f
Change some tests to either include reflection or to avoid using it
33 lines
344 B
Kotlin
Vendored
33 lines
344 B
Kotlin
Vendored
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
inline fun <reified T : Any> className() = T::class.java.simpleName
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
val z = className<String>()
|
|
if (z != "String") return "fail: $z"
|
|
|
|
return "OK"
|
|
}
|
|
|
|
// FILE: 2.smap
|
|
|
|
SMAP
|
|
2.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 2.kt
|
|
_2Kt
|
|
+ 2 1.kt
|
|
test/_1Kt
|
|
*L
|
|
1#1,12:1
|
|
5#2:13
|
|
*E
|