Merge tests into a larger file (part 2 of ∞) (#9335)

* merge controlflow tests

* merge distinct tests

* merge enum tests

* merge fields tests

* merge implicit tests

* merge iter issues tests
This commit is contained in:
Miran 2018-10-13 14:58:31 +02:00 • committed by Andreas Rumpf
commit 3c9fcc4c30
40 changed files with 809 additions and 802 deletions

View file

@ -1,8 +1,19 @@
discard """
output: '''2
88'''
output: '''
1
2
3
4
2
88
'''
"""
for x in [1, 2, 3, 4]:
echo x
type
TValue* {.pure, final.} = object of RootObj
a: int
@ -32,4 +43,4 @@ block:
var indirect = p
x.indirect(44)
echo x[]
echo x[]

View file

@ -1,4 +0,0 @@
for x in [1, 2, 3, 4]:
echo x