This commit is contained in:
parent
362c8964bf
commit
018e297d66
4 changed files with 32 additions and 6 deletions
|
|
@ -14,5 +14,6 @@ let c = makeCounter()
|
|||
afterCodeReload:
|
||||
echo " 0: after - closure iterator: ", c()
|
||||
echo " 0: after - closure iterator: ", c()
|
||||
echo " 0: after - c_2 = ", c_2
|
||||
|
||||
proc getInt*(): int = return g_1 + g_2.len
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ type
|
|||
|
||||
let g_2* = @[Type2(data: 2), Type2(data: 3)][1..^1] # should have a length of 1
|
||||
|
||||
const c_2* = [1, 2, 3] # testing that a complext const object is properly exported
|
||||
|
||||
var a: tuple[str: string, i: int]
|
||||
a.str = " 2: random string"
|
||||
echo a.str
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ max mutual recursion reached!
|
|||
bar
|
||||
0: after - closure iterator: 0
|
||||
0: after - closure iterator: 1
|
||||
0: after - c_2 = [1, 2, 3]
|
||||
main: after
|
||||
The answer is: 9
|
||||
main: hasAnyModuleChanged? true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue