mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Preserve static initialization semantics for parts by introducing a special "clinit trigger" class.
Insert "static initialization trigger" call to every method of a part class, remove this call on inline.
Always mangle names for private functions in multifile class parts to avoid resolution clashes on inheritance.
NB in codegen tests initializers for all non-const vals are wrapped in 'run { ... }',
so that the initializer is not a constant expression, and some static initialization code should be generated.
10 lines
261 B
Plaintext
Vendored
10 lines
261 B
Plaintext
Vendored
@kotlin.Metadata
|
|
public final class test/Foo {
|
|
public final static method foo(): void
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
synthetic final class test/Foo__InlineOnlyMultifileKt {
|
|
public final static method foo(): void
|
|
private final static method inlineOnly(): void
|
|
} |