Enable MiniAst inference tests and map literal eval
This commit is contained in:
parent
1eb8793e35
commit
3250e5e556
@ -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))
|
||||
|
||||
@ -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 = """
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user