fixes #24658; cpp compilation failure on Nim 2.2.x (#24663)

fixes #24658
This commit is contained in:
ringabout
2025-02-03 22:48:52 +08:00
committed by GitHub
parent e2bed72b72
commit 7695d51fc4
2 changed files with 8 additions and 2 deletions

View File

@@ -128,4 +128,10 @@ block:
var b = makeBoo()
var b2 = makeBoo2()
main()
main()
block: # bug #24658
type
A {.importcpp: "A".} = object
proc a(something: ptr cint = nil): A {.cdecl, constructor, importcpp: "A(@)".}