This commit is contained in:
Andreas Rumpf 2020-01-14 12:57:20 +01:00 • committed by GitHub
commit 9fc04a555c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View file

@ -4,6 +4,8 @@ discard """
Success
@["a", "b", "c"]
Hello
1
2
0'''
cmd: '''nim c --gc:arc $file'''
"""
@ -126,4 +128,20 @@ proc bug13119 =
bug13119()
# bug #13105
type
Result[T, E] = object
a: T
b: E
D = ref object
x: int
R = Result[D, int]
proc bug13105 =
for n in [R(b: 1), R(b: 2)]:
echo n.b
bug13105()
echo getOccupiedMem() - startMem