Files
kotlin/compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt
2019-11-19 11:00:09 +03:00

25 lines
333 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// FILE: a.kt
inline class IC(val v: Int) {
fun <T> getT(): T? = null
}
// FILE: UseIC.java
public class UseIC {
private IC ic = null;
public static String result() {
return "OK";
}
}
// FILE: test.kt
fun box(): String {
return UseIC.result()
}