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)
|
CompiledValue(slot, SlotType.OBJ)
|
||||||
}
|
}
|
||||||
is ListLiteralRef -> compileListLiteral(ref)
|
is ListLiteralRef -> compileListLiteral(ref)
|
||||||
|
is MapLiteralRef -> compileEvalRef(ref)
|
||||||
is ThisMethodSlotCallRef -> compileThisMethodSlotCall(ref)
|
is ThisMethodSlotCallRef -> compileThisMethodSlotCall(ref)
|
||||||
is StatementRef -> {
|
is StatementRef -> {
|
||||||
val constId = builder.addConst(BytecodeConst.StatementVal(ref.statement))
|
val constId = builder.addConst(BytecodeConst.StatementVal(ref.statement))
|
||||||
|
|||||||
@ -277,7 +277,6 @@ class MiniAstTest {
|
|||||||
assertEquals("Doc6", e1.doc?.summary)
|
assertEquals("Doc6", e1.doc?.summary)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("TODO(bytecode-only): uses fallback")
|
|
||||||
@Test
|
@Test
|
||||||
fun resolve_inferred_member_type() = runTest {
|
fun resolve_inferred_member_type() = runTest {
|
||||||
val code = """
|
val code = """
|
||||||
@ -292,7 +291,6 @@ class MiniAstTest {
|
|||||||
assertEquals("String", DocLookupUtils.simpleClassNameOf(type))
|
assertEquals("String", DocLookupUtils.simpleClassNameOf(type))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("TODO(bytecode-only): uses fallback")
|
|
||||||
@Test
|
@Test
|
||||||
fun resolve_inferred_val_type_from_extern_fun() = runTest {
|
fun resolve_inferred_val_type_from_extern_fun() = runTest {
|
||||||
val code = """
|
val code = """
|
||||||
@ -380,7 +378,6 @@ class MiniAstTest {
|
|||||||
assertTrue(test.isExtern, "function 'test' should be extern")
|
assertTrue(test.isExtern, "function 'test' should be extern")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("TODO(bytecode-only): uses fallback")
|
|
||||||
@Test
|
@Test
|
||||||
fun resolve_object_member_doc() = runTest {
|
fun resolve_object_member_doc() = runTest {
|
||||||
val code = """
|
val code = """
|
||||||
@ -400,7 +397,6 @@ class MiniAstTest {
|
|||||||
assertEquals("O3", resolved.first)
|
assertEquals("O3", resolved.first)
|
||||||
assertEquals("doc for name", resolved.second.doc?.summary)
|
assertEquals("doc for name", resolved.second.doc?.summary)
|
||||||
}
|
}
|
||||||
@Ignore("TODO(bytecode-only): uses fallback")
|
|
||||||
@Test
|
@Test
|
||||||
fun miniAst_captures_nested_generics() = runTest {
|
fun miniAst_captures_nested_generics() = runTest {
|
||||||
val code = """
|
val code = """
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user