Files
Nim/tests/discard/tneedsdiscard.nim
Timothee Cour ab72d68ec8 fix off by 1 error in col shown by toFileLineCol (#10138)
* fix off by 1 error in `col` shown by toFileLineCol
* fix test failures
2018-12-31 15:42:01 +01:00

13 lines
245 B
Nim

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