Don't lost type parameters for members of inline classes in the bytecode

#KT-33157 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2019-08-06 15:13:29 +03:00
parent a874f4f5c3
commit 80acc56c10
8 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// 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()
}