more chatty error message for the 'discard' checking

This commit is contained in:
Andreas Rumpf 2018-02-05 16:49:06 +01:00
commit d72578b3dd
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,6 @@
discard """
line: 10
errormsg: '''expression 'open(f, "arg.txt", fmRead, -1)' is of type 'bool' and has to be discarded'''
errormsg: '''expression 'open(f, "arg.txt", fmRead, -1)' is of type 'bool' and has to be discarded; start of expression here: tneedsdiscard.nim(7, 2)'''
"""
proc p =