'box'/'unbox' methods are called by inline class

This commit is contained in:
Dmitry Petrov
2018-08-30 14:06:15 +03:00
parent 580b782585
commit b1016936b2
20 changed files with 58 additions and 24 deletions
@@ -0,0 +1,12 @@
// !LANGUAGE: +InlineClasses
// FILE: Z.kt
inline class Z(val x: Int)
// FILE: Test.kt
fun test(xs: List<Z>) = xs[0]
// @TestKt.class:
// 0 INVOKEVIRTUAL Z\$Erased\.unbox
// 0 INVOKEVIRTUAL Z\-Erased\.unbox
// 1 INVOKEVIRTUAL Z\.unbox \(\)I