diff options
author | Nikolaj Sidorenco <nikolaj176@hotmail.com> | 2024-04-29 22:06:40 +0200 |
---|---|---|
committer | Nikolaj Sidorenco <nikolaj176@hotmail.com> | 2024-04-29 22:58:14 +0200 |
commit | ed675061da3df4b5a27d1d2e19297abd807268c2 (patch) | |
tree | d380315ef68bb3dfc3ffa96df6cf55f055241bae /test | |
parent | 8eac7b270e8dce34be00c94800d863237fb90085 (diff) |
fix: while expression in seq expression
Diffstat (limited to 'test')
-rw-r--r-- | test/corpus/expr.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/corpus/expr.txt b/test/corpus/expr.txt index 0c2913630..cecf85932 100644 --- a/test/corpus/expr.txt +++ b/test/corpus/expr.txt @@ -2451,3 +2451,36 @@ let x = (identifier)) (const (string)))))))) + +================================================================================ +while expression in sequential expression +================================================================================ + +do + while true do + true + + match x with + | true -> 1 + +-------------------------------------------------------------------------------- + +(file + (value_declaration + (do + (sequential_expression + (while_expression + (const + (bool)) + (const + (bool))) + (match_expression + (long_identifier_or_op + (long_identifier + (identifier))) + (rules + (rule + (const_pattern + (bool)) + (const + (int))))))))) |