Skip to content

Commit 27e68f6

Browse files
committed
fix tests/niminaction/Chapter2/resultreject.nim
1 parent 3af1278 commit 27e68f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/niminaction/Chapter2/resultreject.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ proc resultVar3: string =
2727
"I will cause an error"
2828

2929
doAssert implicit() == "I will be returned"
30-
doAssert discarded() == nil
30+
# doAssert discarded() == nil # this would've caused another error before the semcheck of unused procs kicks in
3131
doAssert explicit() == "I will be returned"
3232
doAssert resultVar() == "I will be returned"
3333
doAssert resultVar2() == "I will be returned"

0 commit comments

Comments
 (0)