[K/N] Rework object and enum classes initialization

Now it works with common logic for all static scope not with custom one.
This commit is contained in:
Pavel Kunyavskiy
2022-11-01 17:29:13 +01:00
committed by Space Team
parent 7006eb938d
commit d3adfec2fb
38 changed files with 393 additions and 1050 deletions
@@ -24,12 +24,12 @@ func testKotlin2Objc() throws {
func testCompanionObject() throws {
let trace = Foo.companion.trace
try assertTrue(trace[6].contains("objc2kotlin_kclass:Foo#companion"))
try assertTrue(trace[8].contains("objc2kotlin_kclass:Foo#companion"))
}
func testStandaloneObject() throws {
let trace = Object.shared.trace
try assertTrue(trace[6].contains("objc2kotlin_kclass:Object#shared"))
try assertTrue(trace[8].contains("objc2kotlin_kclass:Object#shared"))
}
func testEnumEntry() throws {