Use underlying type when computing type mapping mode for inline classes

This commit is contained in:
Dmitry Petrov
2018-08-14 12:46:28 +03:00
parent 948e72f653
commit 8e95ecb821
9 changed files with 117 additions and 2 deletions
@@ -0,0 +1,13 @@
// !LANGUAGE: +InlineClasses
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
inline class Foo<T>(val x: Int)
class Bar(val y: Foo<Any>)
fun box(): String {
if (Bar(Foo<Any>(42)).y.x != 42) throw AssertionError()
return "OK"
}