This commit is contained in:
Araq 2020-07-08 10:45:51 +02:00 • committed by Andreas Rumpf
commit e42ce877a6
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,14 @@
discard """
output: "x"
"""
# bug #14805
type Foo = object
a: string
proc bar(f: var Foo): lent string =
result = f.a
var foo = Foo(a: "x")
echo bar(foo)