more checking for 'var T' as return type; refs #7373

This commit is contained in:
Andreas Rumpf 2018-03-24 08:36:58 +01:00
commit 6f747674be
4 changed files with 50 additions and 3 deletions

View file

@ -1,7 +1,7 @@
discard """
file: "tvarres1.nim"
line: 12
errormsg: "address of 'bla' may not escape its stack frame"
errormsg: "'bla' escapes its stack frame; context: 'bla'"
"""
var