privateAccess now works with ref | ptr (#17760)

This commit is contained in:
Timothee Cour 2021-04-18 15:15:58 -07:00 • committed by GitHub
commit 0a10af5a2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 149 additions and 15 deletions

View file

@ -0,0 +1,17 @@
type
A* = object
a0*: int
ha1: float
B = object
b0*: int
hb1: float
C* = ref object
c0: int
hc1: float
D* = ptr object
d0: int
hd1: float
PA* = ref A
PtA* = ptr A
proc initB*(): B = B()