Small privateAccess improvement (#17786)
This commit is contained in:
parent
438afb4db9
commit
24abe10aa8
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ when defined(nimImportutilsExample):
|
|||
x1: int # private
|
||||
proc initFoo*(): auto = Foo()
|
||||
|
||||
proc privateAccess*(t: typedesc[object|ref|ptr]) {.magic: "PrivateAccess".} =
|
||||
proc privateAccess*(t: typedesc[object|(ref object)|(ptr object)]) {.magic: "PrivateAccess".} =
|
||||
## Enables access to private fields of `t` in current scope.
|
||||
runnableExamples("-d:nimImportutilsExample"):
|
||||
# here we're importing a module containing:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue