Files
kotlin-fork/plugins/kapt3/kapt3-compiler/testData/converter/annotationWithFqNames.kt
T
Alexander Udalov ebb9659e03 Add mode to run kapt with JVM IR, use in tests
Currently JVM IR is not supported in kapt, so almost all tests are
failing, and thus are muted with IGNORE_BACKEND.

 #KT-49682
2022-02-08 20:15:13 +01:00

34 lines
576 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// CORRECT_ERROR_TYPES
// NO_VALIDATION
//FILE: lib/Anno.java
package lib;
public @interface Anno {
Class<?>[] impls() default {};
}
//FILE: lib/impl/Impl.java
package lib.impl;
public class Impl {}
// FILE: test.kt
@file:Suppress("UNRESOLVED_REFERENCE", "ANNOTATION_ARGUMENT_MUST_BE_CONST", "NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION")
package test
import lib.Anno
import lib.impl.Impl
typealias Joo = Impl
@Anno(impls = [Impl::class])
class Foo
@Anno(impls = [Impl::class, ABC::class])
class Bar
@Anno(impls = [Joo::class])
class Boo