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
|
||||
@@ -0,0 +1,11 @@
|
||||
inline class A(val x: Int)
|
||||
|
||||
class B(val y: A)
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
// TESTED_OBJECTS: A, <init>
|
||||
// FLAGS: ACC_PRIVATE, ACC_SYNTHETIC
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
// TESTED_OBJECTS: B, <init>
|
||||
// FLAGS: ACC_PRIVATE
|
||||
Reference in New Issue
Block a user