Add tests for constructors taking inline class arguments

This commit is contained in:
Steven Schäfer
2019-09-23 14:08:29 +02:00
committed by Alexander Udalov
parent 9389d88232
commit 21af7dfbe1
6 changed files with 41 additions and 0 deletions
@@ -0,0 +1,10 @@
// !LANGUAGE: +InlineClasses
// FILE: test.kt
inline class A(val x: String)
class B(val y: A)
fun box() =
B(A("OK")).y.x
// @TestKt.class:
// 1 INVOKESPECIAL B.<init> \(Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;\)V