Skip to content

Commit f9951f5

Browse files
mglukhikhSpace Team
authored andcommitted
K2: reproduce KT-80940, add test for KT-80885
1 parent 76703df commit f9951f5

File tree

10 files changed

+132
-0
lines changed

10 files changed

+132
-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: 12 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: 12 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: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsWithLatestLanguageVersionTestGenerated.java

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

compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsWithoutAliasExpansionTestGenerated.java

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

compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/PhasedJvmDiagnosticLightTreeTestGenerated.java

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

compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/PhasedJvmDiagnosticPsiTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// RUN_PIPELINE_TILL: FIR2IR
2+
// FIR_IDENTICAL
3+
// ISSUE: KT-80940
4+
5+
// MODULE: lib
6+
// FILE: lib.kt
7+
8+
@Target(AnnotationTarget.TYPE)
9+
@Retention(AnnotationRetention.RUNTIME)
10+
annotation class MyAnnotation(val arg: @MyAnnotation String = "")
11+
12+
// MODULE: main(lib)
13+
// FILE: main.kt
14+
15+
fun foo(arg: @MyAnnotation String) {}
16+
17+
/* GENERATED_FIR_TAGS: annotationDeclaration, collectionLiteral, functionDeclaration, outProjection, primaryConstructor,
18+
propertyDeclaration */
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// RUN_PIPELINE_TILL: FIR2IR
2+
// FIR_IDENTICAL
3+
// ISSUE: KT-80885, KT-80940
4+
5+
// MODULE: lib
6+
// FILE: lib.kt
7+
8+
@Target(AnnotationTarget.TYPE)
9+
@Retention(AnnotationRetention.RUNTIME)
10+
annotation class MyAnnotation(vararg val arg: @MyAnnotation String = [])
11+
12+
// MODULE: main(lib)
13+
// FILE: main.kt
14+
15+
fun foo(arg: @MyAnnotation String) {}
16+
17+
/* GENERATED_FIR_TAGS: annotationDeclaration, collectionLiteral, functionDeclaration, outProjection, primaryConstructor, vararg,
18+
propertyDeclaration */

compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java

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

0 commit comments

Comments
 (0)