fixes #9633
This commit is contained in:
parent
d0a02fe66b
commit
05683e3aab
2 changed files with 25 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue