broaden type inference from context (assignment statements)

This commit is contained in:
2026-06-26 17:47:14 +02:00
parent cfc1b2cb42
commit f9ea044169
3 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -253,7 +253,7 @@
```
17. for if statements, allow `if (cond) one-line statement` (instead of forcing either `if (cond) { block }` or `if cond { block }`)
- if statements without a bracketed body must enclose the condition in parentheses
- if statements without a bracketed body must wrap the condition in parentheses UNLESS it's a function call
18. add `defer` statement (inspired by zig)