This commit is contained in:
Araq 2020-07-07 23:10:00 +02:00 • committed by Andreas Rumpf
commit b17e1efc67
2 changed files with 34 additions and 18 deletions

View file

@ -113,7 +113,7 @@ proc myfunc2(x, y: int): tuple[a: MySeqNonCopyable, b:int, c:MySeqNonCopyable] =
var cc = newMySeq(y, 5.0)
(a: case x:
of 1:
let (z1, z2) = myfunc(x,y)
let (z1, z2) = myfunc(x, y)
z2
elif x > 5: raise newException(ValueError, "new error")
else: newMySeq(x, 1.0),