mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
C++: ptr fields now pulls the whole type if it's a member in nkDotExpr (#22855)
This commit is contained in:
9
tests/cpp/virtualptr.nim
Normal file
9
tests/cpp/virtualptr.nim
Normal file
@@ -0,0 +1,9 @@
|
||||
type
|
||||
Loo* {.exportc.} = object
|
||||
LooPtr* = ptr Loo
|
||||
Moo* {.exportc.} = object
|
||||
loo*: LooPtr
|
||||
|
||||
|
||||
proc salute*(foo: LooPtr) {.virtual.} =
|
||||
discard
|
||||
Reference in New Issue
Block a user