Skip to content

Commit f9a7533

Browse files
committed
Add property declaration tests for header compilation.
^KT-78422
1 parent 87278c5 commit f9a7533

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FILE: propertyDeclaration.kt
2+
public final val a: R|kotlin/String| = String(A)
3+
public get(): R|kotlin/String|
4+
public final val b: R|kotlin/String| = String(B)
5+
public get(): R|kotlin/String|
6+
public final fun getC(): R|kotlin/String|
7+
public final val c: <ERROR TYPE REF: Cannot infer variable type without initializer / getter / delegate>
8+
public get(): <ERROR TYPE REF: Cannot infer variable type without initializer / getter / delegate>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN_PIPELINE_TILL: BACKEND
2+
// FIR_DUMP
3+
// Public property with explicit type
4+
//val a: String = "A"
5+
// Public property with implicit type
6+
//val b = "B"
7+
// Property with overriden getter and implicit type.
8+
fun getC() = "C"
9+
val c get() = getC()
10+
11+
/* GENERATED_FIR_TAGS: propertyDeclaration, stringLiteral */

0 commit comments

Comments
 (0)