JVM_IR: add test for serialization of raw types
This commit is contained in:
committed by
TeamCityServer
parent
3b8cb4b00d
commit
1d913a6bf0
@@ -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]
|
||||
Reference in New Issue
Block a user