Automatic dereferencing is removed (#20531)
This commit is contained in:
parent
b8def03575
commit
d954e698b3
8 changed files with 18 additions and 104 deletions
|
|
@ -57,3 +57,18 @@ block: # bug #14698
|
|||
x1: int
|
||||
x3: seq[int]
|
||||
doAssert t[].sizeof == Foo1.sizeof
|
||||
|
||||
# bug #147
|
||||
type
|
||||
TValue* {.pure, final.} = object of RootObj
|
||||
a: int
|
||||
PValue = ref TValue
|
||||
PPValue = ptr PValue
|
||||
|
||||
|
||||
var x: PValue
|
||||
new x
|
||||
var sp: PPValue = addr x
|
||||
|
||||
sp.a = 2
|
||||
doAssert sp.a == 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue