Idris2/tests/idris2/interpolation001/IfThenElse.idr
André Videla 1276f47cf6 Fix #1767
The `if then else` syntax expects a block for the `then` and `else`
parts. Before this patch, the token `InterpEnd` was not a valid
follow up token to end a block. This adds `InterpEnd` as a closing
token for blocks, allowing `if then else` in interpolation slices
without additional parens.
2021-07-22 12:17:53 +00:00

3 lines
66 B
Idris

ifthenelse : String
ifthenelse = "\{ if True then "a" else "b" }"