Imports, cross-boundary resolution; can import std but dies on missing builtins / lang features

This commit is contained in:
Auguste Rame
2022-10-29 17:28:44 -04:00
parent da00751726
commit 599c134593
6 changed files with 175 additions and 61 deletions

View File

@@ -41,8 +41,8 @@ test "ComptimeInterpreter - basic test" {
}, .{});
defer call_with_true.scope.deinit();
try std.testing.expectFmt("u69", "{any}", .{interpreter.formatTypeInfo(interpreter.typeToTypeInfo(call_with_false.result.value.value_data.@"type"))});
try std.testing.expectFmt("u8", "{any}", .{interpreter.formatTypeInfo(interpreter.typeToTypeInfo(call_with_true.result.value.value_data.@"type"))});
try std.testing.expectFmt("u69", "{any}", .{interpreter.formatTypeInfo(call_with_false.result.value.value_data.@"type".getTypeInfo())});
try std.testing.expectFmt("u8", "{any}", .{interpreter.formatTypeInfo(call_with_true.result.value.value_data.@"type".getTypeInfo())});
}
test "ComptimeInterpreter - struct" {