parent
a41b243fea
commit
1881fc5812
2 changed files with 13 additions and 2 deletions
12
tests/parser/tifexprs.nim
Normal file
12
tests/parser/tifexprs.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
output: '''
|
||||
1
|
||||
'''
|
||||
"""
|
||||
|
||||
var a, b: int
|
||||
let x = if a > b:
|
||||
0
|
||||
else: 1
|
||||
|
||||
echo x
|
||||
Loading…
Add table
Add a link
Reference in a new issue