mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-03 22:18:40 +00:00
C++: ptr fields now pulls the whole type if it's a member in nkDotExpr (#22855)
This commit is contained in:
@@ -115,4 +115,12 @@ proc test(self: Child): Box[Inner] {.virtual, asmnostackframe.} =
|
||||
{.emit:"return res;".}
|
||||
|
||||
|
||||
discard Child().test()
|
||||
discard Child().test()
|
||||
|
||||
import virtualptr
|
||||
|
||||
#We dont want to pull Loo directly by using it as we are testing that the pointer pulls it.
|
||||
proc makeMoo(): Moo {.importcpp:"{ new Loo() }".}
|
||||
|
||||
makeMoo().loo.salute()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user