From 3250e5e55686534547451c0419895d0ac1dfb185 Mon Sep 17 00:00:00 2001 From: sergeych Date: Thu, 29 Jan 2026 02:34:34 +0300 Subject: [PATCH] Enable MiniAst inference tests and map literal eval --- .../kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt | 1 + lynglib/src/commonTest/kotlin/MiniAstTest.kt | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lynglib/src/commonMain/kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt b/lynglib/src/commonMain/kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt index 89bc72a..017e0d6 100644 --- a/lynglib/src/commonMain/kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt +++ b/lynglib/src/commonMain/kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt @@ -183,6 +183,7 @@ class BytecodeCompiler( CompiledValue(slot, SlotType.OBJ) } is ListLiteralRef -> compileListLiteral(ref) + is MapLiteralRef -> compileEvalRef(ref) is ThisMethodSlotCallRef -> compileThisMethodSlotCall(ref) is StatementRef -> { val constId = builder.addConst(BytecodeConst.StatementVal(ref.statement)) diff --git a/lynglib/src/commonTest/kotlin/MiniAstTest.kt b/lynglib/src/commonTest/kotlin/MiniAstTest.kt index 9102b0a..c7f5c36 100644 --- a/lynglib/src/commonTest/kotlin/MiniAstTest.kt +++ b/lynglib/src/commonTest/kotlin/MiniAstTest.kt @@ -277,7 +277,6 @@ class MiniAstTest { assertEquals("Doc6", e1.doc?.summary) } - @Ignore("TODO(bytecode-only): uses fallback") @Test fun resolve_inferred_member_type() = runTest { val code = """ @@ -292,7 +291,6 @@ class MiniAstTest { assertEquals("String", DocLookupUtils.simpleClassNameOf(type)) } - @Ignore("TODO(bytecode-only): uses fallback") @Test fun resolve_inferred_val_type_from_extern_fun() = runTest { val code = """ @@ -380,7 +378,6 @@ class MiniAstTest { assertTrue(test.isExtern, "function 'test' should be extern") } - @Ignore("TODO(bytecode-only): uses fallback") @Test fun resolve_object_member_doc() = runTest { val code = """ @@ -400,7 +397,6 @@ class MiniAstTest { assertEquals("O3", resolved.first) assertEquals("doc for name", resolved.second.doc?.summary) } - @Ignore("TODO(bytecode-only): uses fallback") @Test fun miniAst_captures_nested_generics() = runTest { val code = """