feat: struct init in all phases, 9/14 modules pass check
This commit is contained in:
@@ -188,6 +188,11 @@ func Sema_CheckExpr(sema: *Sema, expr: *Expr) -> int {
|
||||
return inner; // simplified
|
||||
}
|
||||
|
||||
// Struct init: TypeName { field: value, ... }
|
||||
if kind == ekStructInit {
|
||||
return tyNamed;
|
||||
}
|
||||
|
||||
return tyUnknown;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user