Add tests for constructors taking inline class arguments
This commit is contained in:
committed by
Alexander Udalov
parent
9389d88232
commit
21af7dfbe1
@@ -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
|
||||
Reference in New Issue
Block a user