diff --git a/src/analysis.zig b/src/analysis.zig index 7363078..f1a9407 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -550,9 +550,9 @@ pub const Analyzer = struct { } }, - else => { - std.debug.warn("TODO type analysis of {}\n", node.*); - return CompileError.TypeError; + .Block => { + self.doError("Block can't be found at root"); + return CompileError.Invalid; }, } }