This commit is contained in:
Araq 2015-09-10 13:20:15 +02:00
commit 34ab1d3e34
3 changed files with 14 additions and 25 deletions

View file

@ -0,0 +1,12 @@
discard """
errormsg: "value of type 'string' has to be discarded"
line: 12
"""
proc valid*(): string =
let x = 317
"valid"
proc invalid*(): string =
result = "foo"
"invalid"