diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-01 20:26:07 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-01 20:26:07 +0100 |
commit | ff1b90a4f4aec4d374261adda460ddc1d83c5ddd (patch) | |
tree | 356865160bad344c8c19b9c1d115d7574f75e005 /test-files/mds-kbdc/validate-tree/invalid/if-else-break | |
parent | mds-kbdc: add some test cases + fix issued with inclusion (diff) | |
download | mds-ff1b90a4f4aec4d374261adda460ddc1d83c5ddd.tar.gz mds-ff1b90a4f4aec4d374261adda460ddc1d83c5ddd.tar.bz2 mds-ff1b90a4f4aec4d374261adda460ddc1d83c5ddd.tar.xz |
mds-kbdc: m + more test cases
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test-files/mds-kbdc/validate-tree/invalid/if-else-break')
-rw-r--r-- | test-files/mds-kbdc/validate-tree/invalid/if-else-break | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/validate-tree/invalid/if-else-break b/test-files/mds-kbdc/validate-tree/invalid/if-else-break new file mode 100644 index 0000000..0e8ae81 --- /dev/null +++ b/test-files/mds-kbdc/validate-tree/invalid/if-else-break @@ -0,0 +1,22 @@ +if 1 + if 0 + else + break + end if +end if + +# (if (@ 1 0-2) ‘1’ +# (.inner +# (if (@ 2 2-4) ‘0’ +# (.inner nil) +# (.otherwise +# (break (@ 4 4-9)) +# ) +# ) +# ) +# (.otherwise nil) +# ) +# :4:4–9: error: ‘break’ outside ‘for’ +# break +# ^^^^^ + |