mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
Don't lost type parameters for members of inline classes in the bytecode
#KT-33157 Fixed
This commit is contained in:
23
compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt
vendored
Normal file
23
compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt
vendored
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user