Map inline classes in generic argument position to theirs wrap classes

This commit is contained in:
Mikhail Zarechenskiy
2018-02-09 08:26:25 +03:00
parent 1d16d21dbb
commit a8a9f774d0
6 changed files with 92 additions and 4 deletions
@@ -0,0 +1,18 @@
// !LANGUAGE: +InlineClasses
class Inv<T>
inline class UInt(val value: Int)
object Test {
fun asNotNullTypeArgument(i: Inv<UInt>) {}
fun asInnerTypeArgument(i: Inv<Inv<UInt>>) {}
}
// method: Test::asNotNullTypeArgument
// jvm signature: (LInv;)V
// generic signature: (LInv<LUInt;>;)V
// method: Test::asInnerTypeArgument
// jvm signature: (LInv;)V
// generic signature: (LInv<LInv<LUInt;>;>;)V