Files
kotlin-fork/compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt
T
Alexander Udalov 2564a2f91f Do not include kotlin-reflect at runtime by default in codegen tests
Change some tests to either include reflection or to avoid using it
2016-03-09 10:25:38 +03:00

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