This commit is contained in:
Andreas Rumpf 2018-11-08 08:15:10 +01:00
commit 05683e3aab
2 changed files with 25 additions and 6 deletions

View file

@ -1,7 +1,8 @@
discard """
output: '''holla
true
defabc 4'''
defabc 4
0'''
"""
# Test top level semicolon works properly:
@ -24,3 +25,18 @@ echo "def".foo[:string, string]("abc"), " ", 4.bar[:int]
proc isFalse(a: int): bool = false
assert not isFalse(3)
# bug #9633
type
MyField = object
b: seq[string]
MyObject = object
f: MyField
proc getX(x: MyObject): lent MyField {.inline.} =
x.f
let a = MyObject()
echo a.getX.b.len