diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-28 21:01:05 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-28 21:01:36 +0100 |
| commit | 9c906f92c50d453822b12896d29b7883802ea567 (patch) | |
| tree | 78e2465a4fa805bbddc80407b7eea585b5ebb60c /tests/typ/code/break-continue.typ | |
| parent | 3a07603b66fab6b343b34156f4a3a6015e2d69e1 (diff) | |
Parse `break`, `continue` and `return` expression
Diffstat (limited to 'tests/typ/code/break-continue.typ')
| -rw-r--r-- | tests/typ/code/break-continue.typ | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/typ/code/break-continue.typ b/tests/typ/code/break-continue.typ new file mode 100644 index 00000000..2b38cf77 --- /dev/null +++ b/tests/typ/code/break-continue.typ @@ -0,0 +1,14 @@ +// Test break and continue in loops. +// Ref: false + +--- +#for i in range(10) { + if i > 5 { + // Error: 5-10 break is not yet implemented + break + } +} + +--- +// Error: 1-10 unexpected keyword `continue` +#continue |
