KT-63096 [LL] Add test for using annotation from other module for compiler plugin

This commit is contained in:
Roman Golyshev
2023-11-06 18:38:21 +01:00
committed by teamcity
parent 2f50267d3f
commit 500dd20277
8 changed files with 93 additions and 2 deletions
@@ -0,0 +1,19 @@
// WITH_FIR_TEST_COMPILER_PLUGIN
// MODULE: lib
// FILE: foo/MyAnnotation.kt
package foo
annotation class MyAnnotation
// MODULE: main(lib)
// FILE: test/main.kt
package test
@foo.MyAnnotation
class MyClass
fun test(myClass: MyClass) {
myClass.mater<caret>ialize()
}
@@ -0,0 +1,17 @@
KtSuccessCallInfo:
call = KtSimpleFunctionCall:
isImplicitInvoke = false
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
dispatchReceiver = KtExplicitReceiverValue:
expression = myClass
isSafeNavigation = false
type = test.MyClass
extensionReceiver = null
signature = KtFunctionLikeSignature:
receiverType = null
returnType = test.MyClass
symbol = test/MyClass.materialize(<dispatch receiver>: test.MyClass): test.MyClass
valueParameters = []
callableIdIfNonLocal = test/MyClass.materialize
typeArgumentsMapping = {}
argumentMapping = {}