Files
kotlin-fork/compiler/testData/codegen/box/callableReference/kt21092b.kt
T
2020-12-23 21:50:07 +03:00

12 lines
231 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
class A<T>(val b: T)
fun box(): String {
val test = A(1).b::javaClass.get().simpleName
if (test != "Integer") throw Exception("test: $test")
return "OK"
}