diff options
author | Clyybber <darkmine956@gmail.com> | 2021-06-28 17:41:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-28 17:41:37 +0200 |
commit | 72d6a9c885504a1752ee0639aa110d4bf42d95c8 (patch) | |
tree | 6f832082067ea29ee982488d70a446b5c7ac473b /tests | |
parent | cb9496693a718cdb9ad8b764f82f524efe943bd2 (diff) | |
download | Nim-72d6a9c885504a1752ee0639aa110d4bf42d95c8.tar.gz |
Fix #16426 (#18377)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/parser/tstmtlists.nim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/parser/tstmtlists.nim b/tests/parser/tstmtlists.nim index b6c7e4a94..fa47ba364 100644 --- a/tests/parser/tstmtlists.nim +++ b/tests/parser/tstmtlists.nim @@ -50,6 +50,8 @@ hello 9 hello 10 +lucky +lucky ''' """ @@ -163,3 +165,16 @@ template dim: int = else: int.high) +# lenient indentation: + +echo (if 0 == 1: + "0 == 1" +else: + "lucky") + +# bug #16426 +echo (when 0 == 1: + "0 == 1" +else: + "lucky") + |