diff options
| author | 2022-08-25 10:38:08 +0200 | |
|---|---|---|
| committer | 2022-08-25 10:38:08 +0200 | |
| commit | 128c854f4ecb5f158cce3d91bb266ab000f27d4b (patch) | |
| tree | 3cf34279e1d325f3f5a83a5524fe3c23462f3b98 /src/parse.cff | |
| parent | c511c1a189cf0df60487c286caced0b251104859 (diff) | |
add cond switch
Diffstat (limited to 'src/parse.cff')
| -rw-r--r-- | src/parse.cff | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.cff b/src/parse.cff index 2ac15ba..dc3cad3 100644 --- a/src/parse.cff +++ b/src/parse.cff @@ -2309,9 +2309,9 @@ fn pstcswitch(P *Parser, loc Loc) Stmt { c.test = parseexpr(P); lexexpect(P, ';'); c.t = parseblock0(P); + cs->push(c); } - return { loc, :CSwitch { cs->move(P.alloc), f }}; } |