diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-03-26 20:24:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-26 20:24:06 +0200 |
commit | d02486aa48e51b8db51baa762d6e87fe7eb91f04 (patch) | |
tree | 5111ec11dd7e8e3320dbe364305896cb38c3ca0f /tests/discard/tneedsdiscard.nim | |
parent | 481d8ba24afaffdc926795a42150e5cd1e1c69b3 (diff) | |
download | Nim-d02486aa48e51b8db51baa762d6e87fe7eb91f04.tar.gz |
compiler: better error messages (#5613)
Diffstat (limited to 'tests/discard/tneedsdiscard.nim')
-rw-r--r-- | tests/discard/tneedsdiscard.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/discard/tneedsdiscard.nim b/tests/discard/tneedsdiscard.nim index 2df3531e7..509e8233b 100644 --- a/tests/discard/tneedsdiscard.nim +++ b/tests/discard/tneedsdiscard.nim @@ -1,10 +1,10 @@ discard """ line: 10 - errormsg: "value of type 'bool' has to be discarded" + errormsg: '''expression 'open(f, "arg.txt", fmRead, -1)' is of type 'bool' and has to be discarded''' """ proc p = - var f: TFile + var f: File echo "hi" open(f, "arg.txt") |