Skip to content

Commit 8361fa8

Browse files
committed
Add data class tests for header compilation.
^KT-78422
1 parent a327aff commit 8361fa8

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FILE: dataClassDeclaration.kt
2+
public final data class User : R|kotlin/Any| {
3+
public constructor(name: R|kotlin/String|, age: R|kotlin/Int|): R|User| {
4+
super<R|kotlin/Any|>()
5+
}
6+
7+
public final val name: R|kotlin/String| = R|<local>/name|
8+
public get(): R|kotlin/String|
9+
10+
public final val age: R|kotlin/Int| = R|<local>/age|
11+
public get(): R|kotlin/Int|
12+
13+
public final operator fun component1(): R|kotlin/String|
14+
15+
public final operator fun component2(): R|kotlin/Int|
16+
17+
public final fun copy(name: R|kotlin/String| = this@R|/User|.R|/User.name|, age: R|kotlin/Int| = this@R|/User|.R|/User.age|): R|User|
18+
19+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN_PIPELINE_TILL: BACKEND
2+
// FIR_DUMP
3+
data class User(val name: String, val age: Int)
4+
5+
/* GENERATED_FIR_TAGS: classDeclaration, data, primaryConstructor, propertyDeclaration */

0 commit comments

Comments
 (0)