Merge pull request #2274 from reactormonk/warning-for-result

Warning for result
This commit is contained in:
Andreas Rumpf 2015-03-08 14:49:49 +01:00
commit 38b9093581
3 changed files with 14 additions and 3 deletions

View file

@ -0,0 +1,6 @@
discard """
nimout: "Special variable 'result' is shadowed. [ResultShadowed]"
"""
proc test(): string =
var result = "foo"