diff --git a/Check.jai b/Check.jai index 95a7103..5c1f0af 100644 --- a/Check.jai +++ b/Check.jai @@ -6,6 +6,7 @@ //~ nbr: Error reporting TODOs // // [ ] Add and error for using keywords as names, or rename the dx11 keywords in the resulting hlsl shader. +// [ ] Add missing scope in for loop for loop iterator // [x] Improve error reporting on mismatched overloads when types don't match, but arity does. // [x] Improve error reporting for type mismatches in general. It seems like the expect node is not always correct. @@ -1597,6 +1598,7 @@ check_node :: (checker : *Checker, node : *AST_Node) -> Type_Variable_Handle { } case .For; { loop_iterator := node.token; + // @Incomplete: Missing scope here? symbol : Defined_Symbol; symbol.name = loop_iterator.ident_value;