Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/nestedAnnotationConstExprArguments.fir.txt
Kirill Rakhman 8443daf78d [FIR] Remove FirNamedArgumentExpressions during completion
They are mostly necessary for argument mapping during resolution.
To support a couple checkers, we transform named args for varargs
into "fake" spread expressions.

Other than that, named arguments aren't needed for anything and often
lead to bugs where we forget to unwrap them for something, so it's
better to get rid of them.

#KT-66124
2024-03-13 17:05:48 +00:00

44 lines
1.6 KiB
Plaintext
Vendored

FILE: nestedAnnotationConstExprArguments.kt
public final annotation class InnerAnnotation : R|kotlin/Annotation| {
public constructor(text: R|kotlin/String|): R|InnerAnnotation| {
super<R|kotlin/Any|>()
}
public final val text: R|kotlin/String| = R|<local>/text|
public get(): R|kotlin/String|
}
public final annotation class OuterAnnotation : R|kotlin/Annotation| {
public constructor(inner: R|InnerAnnotation|): R|OuterAnnotation| {
super<R|kotlin/Any|>()
}
public final val inner: R|InnerAnnotation| = R|<local>/inner|
public get(): R|InnerAnnotation|
}
@R|OuterAnnotation|(inner = R|/InnerAnnotation.InnerAnnotation|(String(x).R|kotlin/String.plus|(String(x)))) public final class Payload : R|kotlin/Any| {
public constructor(): R|Payload| {
super<R|kotlin/Any|>()
}
}
@R|InnerAnnotation|(text = String(x).R|kotlin/String.plus|(String(x))) public final class Payload2 : R|kotlin/Any| {
public constructor(): R|Payload2| {
super<R|kotlin/Any|>()
}
}
@R|OuterAnnotation|(inner = R|/InnerAnnotation.InnerAnnotation|(String(x))) public final class Payload3 : R|kotlin/Any| {
public constructor(): R|Payload3| {
super<R|kotlin/Any|>()
}
}
@R|OuterAnnotation|(inner = R|/InnerAnnotation.InnerAnnotation|(String(x).R|kotlin/String.plus|(String(x)))) public final class Payload4 : R|kotlin/Any| {
public constructor(): R|Payload4| {
super<R|kotlin/Any|>()
}
}