JVM box tests for KT-21092
This commit is contained in:
committed by
TeamCityServer
parent
0841a6b0ea
commit
3f7a776fb8
@@ -0,0 +1,12 @@
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user