abaffeddab
This test uses a hacky mode of the compiler which is not worth it to support further (especially in K2), `USE_SINGLE_MODULE`, where everything is compiled in one module. The purpose of the test is just to check that metadata for local/anonymous classes is written correctly. So we can replace it with the tests on kotlinp, which uses kotlinx-metadata-jvm and dumps all loaded metadata to text. This replacement is not perfect, in particular because it won't check that the reflection machinery is able to load this metadata, and because it won't check that annotations are loaded correctly from the bytecode. But IMHO it's good enough, there are box tests on reflection on local classes (e.g. `reflection/annotations/localClassLiteral.kt`), so this way is better than having to support the weird compiler mode for just one test.
37 lines
764 B
Plaintext
Vendored
37 lines
764 B
Plaintext
Vendored
// A.class
|
|
// ------------------------------------------
|
|
public final class A : kotlin/Any {
|
|
|
|
// signature: <init>()V
|
|
public constructor()
|
|
|
|
// module name: test-module
|
|
}
|
|
// A$L.class
|
|
// ------------------------------------------
|
|
local final class .A$L<T#0 /* T */> : kotlin/Any {
|
|
|
|
// signature: <init>()V
|
|
public constructor()
|
|
|
|
// signature: x(LA$L;)V
|
|
public final fun x(l: .A$L<.A$L<T#0>.I>): kotlin/Unit
|
|
|
|
// nested class: I
|
|
|
|
// module name: test-module
|
|
}
|
|
// A$L$I.class
|
|
// ------------------------------------------
|
|
local final inner class .A$L.I : kotlin/Any {
|
|
|
|
// signature: <init>(LA$L;)V
|
|
public constructor()
|
|
|
|
// module name: test-module
|
|
}
|
|
// META-INF/test-module.kotlin_module
|
|
// ------------------------------------------
|
|
module {
|
|
}
|