Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeKClassLiteral.fir.txt
T
Dmitriy Novozhilov e6b5cb5216 [TD] Update diagnostics test data due to new test runners
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
2020-12-16 19:52:25 +03:00

24 lines
993 B
Plaintext
Vendored

FILE: annotationArgumentMustBeKClassLiteral.kt
@R|kotlin/annotation/Repeatable|() public final annotation class Ann : R|kotlin/Annotation| {
public constructor(a: R|kotlin/Array<kotlin/reflect/KClass<*>>|): R|Ann| {
super<R|kotlin/Any|>()
}
public final val a: R|kotlin/Array<kotlin/reflect/KClass<*>>| = R|<local>/a|
public get(): R|kotlin/Array<kotlin/reflect/KClass<*>>|
}
public final class Foo : R|kotlin/Any| {
public constructor(): R|Foo| {
super<R|kotlin/Any|>()
}
}
public final val foo: R|kotlin/reflect/KClass<Foo>| = <getClass>(Q|Foo|)
public get(): R|kotlin/reflect/KClass<Foo>|
public final fun bar(): R|kotlin/reflect/KClass<Foo>| {
^bar <getClass>(Q|Foo|)
}
@R|Ann|(<implicitArrayOf>(<getClass>(String()), <getClass>(Boolean(true)), <getClass>(Int(1)))) @R|Ann|(<implicitArrayOf>(R|/foo|, R|/bar|())) public final fun test1(): R|kotlin/Unit| {
}