JVM_IR: add test for serialization of raw types

This commit is contained in:
Georgy Bronnikov
2021-08-07 17:30:17 +03:00
committed by TeamCityServer
parent 3b8cb4b00d
commit 1d913a6bf0
6 changed files with 46 additions and 0 deletions
@@ -0,0 +1,16 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: UseRawType.java
import java.util.List;
public class UseRawType {
static public List useList(List arg) {
return arg;
}
}
// FILE: use.kt
inline fun callRawType() = UseRawType.useList(listOf("OK")) as List<String>
// FILE: box.kt
fun box() = callRawType()[0]