Skip to content

Commit d3e8fda

Browse files
committed
Fixed compiler tests
1 parent 8667afd commit d3e8fda

File tree

8 files changed

+21
-0
lines changed

8 files changed

+21
-0
lines changed

tests/compiler-plugin-tests/src/testData/box/customParameterTypes.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ fun box(): String = runBlocking {
2525

2626
if (test1 == "call_42" && test2 == "call_42") "OK" else "Fail: test1=$test1, test2=$test2"
2727
}
28+
29+
/* GENERATED_FIR_TAGS: classDeclaration, data, functionDeclaration, interfaceDeclaration, primaryConstructor,
30+
propertyDeclaration, suspend */

tests/compiler-plugin-tests/src/testData/box/flowParameter.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ fun box(): String = runBlocking {
2020

2121
if (result == "call_42") "OK" else "Fail: $result"
2222
}
23+
24+
/* GENERATED_FIR_TAGS: functionDeclaration, interfaceDeclaration, suspend */

tests/compiler-plugin-tests/src/testData/box/multiModule.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ fun box(): String = runBlocking {
2424

2525
if (result == "call_42") "OK" else "Fail: $result"
2626
}
27+
28+
/* GENERATED_FIR_TAGS: functionDeclaration, interfaceDeclaration, suspend */

tests/compiler-plugin-tests/src/testData/box/simple.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ fun box(): String = runBlocking {
1919

2020
if (result == "call_42") "OK" else "Fail: $result"
2121
}
22+
23+
/* GENERATED_FIR_TAGS: functionDeclaration, interfaceDeclaration, suspend */

tests/compiler-plugin-tests/src/testData/diagnostics/checkedAnnotation.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,6 @@ fun <T> unknownTypeFail9(arg: T) {
306306
fun <T> unknownTypeFail10(arg: T) {
307307
<!CHECKED_ANNOTATION_VIOLATION, CHECKED_ANNOTATION_VIOLATION!>deeplyNestedTwoWithArgCheckedOk<!>(<!CHECKED_ANNOTATION_VIOLATION!>GenericClass<!>(<!CHECKED_ANNOTATION_VIOLATION!>GenericClass<!>(<!CHECKED_ANNOTATION_VIOLATION!>CheckedClass<!>(arg))))
308308
}
309+
310+
/* GENERATED_FIR_TAGS: annotationDeclaration, classDeclaration, functionDeclaration, nullableType, primaryConstructor,
311+
starProjection, typeConstraint, typeParameter */

tests/compiler-plugin-tests/src/testData/diagnostics/rpcChecked.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ class WrongGrpcTarget
5959

6060
<!WRONG_RPC_ANNOTATION_TARGET!>@Rpc<!>
6161
class WrongRpcTarget
62+
63+
/* GENERATED_FIR_TAGS: annotationDeclaration, annotationUseSiteTargetFile, classDeclaration, classReference,
64+
functionDeclaration, inline, interfaceDeclaration, lambdaLiteral, reified, suspend, typeConstraint, typeParameter */

tests/compiler-plugin-tests/src/testData/diagnostics/rpcService.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ interface MyServiceT<!TYPE_PARAMETERS_IN_RPC_INTERFACE!><T><!>
3838

3939
@Rpc
4040
interface MyServiceT2<!TYPE_PARAMETERS_IN_RPC_INTERFACE!><T, R, A, B><!>
41+
42+
/* GENERATED_FIR_TAGS: annotationUseSiteTargetFile, classReference, functionDeclaration, interfaceDeclaration,
43+
nullableType, suspend, typeConstraint, typeParameter */

tests/compiler-plugin-tests/src/testData/diagnostics/strictMode.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,6 @@ interface MyService {
6666
<!NON_SUSPENDING_REQUEST_WITHOUT_STREAMING_RETURN_TYPE!>fun nonSuspendNoFlowString(): String<!>
6767
suspend fun complex(filter: ComplexFilter): String // doesn't fail on circular dependency
6868
}
69+
70+
/* GENERATED_FIR_TAGS: annotationUseSiteTargetFile, classDeclaration, classReference, data, functionDeclaration,
71+
interfaceDeclaration, nullableType, primaryConstructor, propertyDeclaration, suspend, typeParameter */

0 commit comments

Comments
 (0)