Phase 8.1: ! (unwrap/panic) operator — syntax, parsing, HIR lowering, runtime panic

This commit is contained in:
2026-05-31 13:45:55 +03:00
parent 3949a2f91e
commit 98d1354b7a
7 changed files with 59 additions and 0 deletions
+3
View File
@@ -116,6 +116,7 @@ type
ekCast
ekIs
ekTry
ekUnwrap ## expr! — unwrap or panic
ekBlock
ekMatch
@@ -193,6 +194,8 @@ type
of ekTry:
exprTryOperand*: Expr
exprTryType*: TypeExpr # nil for Result?, or explicit target type
of ekUnwrap:
exprUnwrapOperand*: Expr
of ekBlock:
exprBlock*: Block
of ekMatch: