2423b7b62f
Also adds rendering of @Metadata annotations in Kapt3 and Kapt4 tests (currently disabled for a few tests). Co-authored-by: Alexander Udalov <alexander.udalov@jetbrains.com>
109 lines
1.6 KiB
Plaintext
Vendored
109 lines
1.6 KiB
Plaintext
Vendored
package lib;
|
|
|
|
public @interface Anno {
|
|
|
|
Class<?>[] impls() default {};
|
|
}
|
|
|
|
////////////////////
|
|
|
|
package lib.impl;
|
|
|
|
public class Impl {
|
|
}
|
|
|
|
////////////////////
|
|
|
|
package test;
|
|
|
|
import lib.Anno;
|
|
import lib.impl.Impl;
|
|
|
|
@lib.Anno(impls = {lib.impl.Impl.class, ABC.class})
|
|
/**
|
|
* public final class test/Bar : kotlin/Any {
|
|
*
|
|
* // signature: <init>()V
|
|
* public constructor()
|
|
*
|
|
* // module name: main
|
|
* }
|
|
*/
|
|
@kotlin.Metadata()
|
|
public final class Bar {
|
|
|
|
public Bar() {
|
|
super();
|
|
}
|
|
}
|
|
|
|
////////////////////
|
|
|
|
package test;
|
|
|
|
import lib.Anno;
|
|
import lib.impl.Impl;
|
|
|
|
@lib.Anno(impls = {lib.impl.Impl.class})
|
|
/**
|
|
* public final class test/Boo : kotlin/Any {
|
|
*
|
|
* // signature: <init>()V
|
|
* public constructor()
|
|
*
|
|
* // module name: main
|
|
* }
|
|
*/
|
|
@kotlin.Metadata()
|
|
public final class Boo {
|
|
|
|
public Boo() {
|
|
super();
|
|
}
|
|
}
|
|
|
|
////////////////////
|
|
|
|
package test;
|
|
|
|
import lib.Anno;
|
|
import lib.impl.Impl;
|
|
|
|
@lib.Anno(impls = {lib.impl.Impl.class})
|
|
/**
|
|
* public final class test/Foo : kotlin/Any {
|
|
*
|
|
* // signature: <init>()V
|
|
* public constructor()
|
|
*
|
|
* // module name: main
|
|
* }
|
|
*/
|
|
@kotlin.Metadata()
|
|
public final class Foo {
|
|
|
|
public Foo() {
|
|
super();
|
|
}
|
|
}
|
|
|
|
////////////////////
|
|
|
|
package test;
|
|
|
|
import lib.Anno;
|
|
import lib.impl.Impl;
|
|
|
|
/**
|
|
* package {
|
|
*
|
|
* public typealias Joo = lib/impl/Impl (* = lib/impl/Impl *)
|
|
*
|
|
* // module name: main
|
|
* }
|
|
*/
|
|
@kotlin.Metadata()
|
|
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE", "ANNOTATION_ARGUMENT_MUST_BE_CONST", "NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION"})
|
|
public final class TestKt {
|
|
}
|