Skip to content

Commit fbda1e6

Browse files
KvanTTTSpace Team
authored andcommitted
[Test] Reproduce confusing diagnostic when the default constructor is absent
for expected annotation class KT-20677
1 parent cced4d2 commit fbda1e6

File tree

6 files changed

+66
-0
lines changed

6 files changed

+66
-0
lines changed

analysis/low-level-api-fir/tests-gen/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLDiagnosticsFe10TestGenerated.java

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/low-level-api-fir/tests-gen/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLPartialDiagnosticsFe10TestGenerated.java

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/low-level-api-fir/tests-gen/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLReversedDiagnosticsFe10TestGenerated.java

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// ISSUE: KT-20677
2+
// RUN_PIPELINE_TILL: FRONTEND
3+
// IGNORE_FIR_DIAGNOSTICS
4+
// MODULE: m1-common
5+
6+
<!NO_ACTUAL_FOR_EXPECT{JVM}!>expect<!> annotation class Ann
7+
8+
@<!UNRESOLVED_REFERENCE!>Ann<!>
9+
fun commonFoo() {}
10+
11+
// MODULE: m1-jvm()()(m1-common)
12+
13+
@<!UNRESOLVED_REFERENCE!>Ann<!>
14+
fun platformFoo() {}
15+
16+
/* GENERATED_FIR_TAGS: annotationDeclaration, expect, functionDeclaration */
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// ISSUE: KT-20677
2+
// RUN_PIPELINE_TILL: FRONTEND
3+
// IGNORE_FIR_DIAGNOSTICS
4+
// MODULE: m1-common
5+
6+
expect annotation class <!NO_ACTUAL_FOR_EXPECT{JVM}!>Ann<!>
7+
8+
@<!NO_CONSTRUCTOR, NO_CONSTRUCTOR{JVM}!>Ann<!>
9+
fun commonFoo() {}
10+
11+
// MODULE: m1-jvm()()(m1-common)
12+
13+
@<!NO_CONSTRUCTOR!>Ann<!>
14+
fun platformFoo() {}
15+
16+
/* GENERATED_FIR_TAGS: annotationDeclaration, expect, functionDeclaration */
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// ISSUE: KT-20677
2+
// RUN_PIPELINE_TILL: FRONTEND
3+
// IGNORE_FIR_DIAGNOSTICS
4+
// MODULE: m1-common
5+
6+
expect annotation class Ann
7+
8+
@<!UNRESOLVED_REFERENCE!>Ann<!>
9+
fun commonFoo() {}
10+
11+
// MODULE: m1-jvm()()(m1-common)
12+
13+
@<!UNRESOLVED_REFERENCE!>Ann<!>
14+
fun platformFoo() {}
15+
16+
/* GENERATED_FIR_TAGS: annotationDeclaration, expect, functionDeclaration */

0 commit comments

Comments
 (0)