PMunch / wxnim

Nim wrapper for wxWidgets.
MIT License
94 stars 11 forks source link

genui script causes compile error with Nim v0.16.0 #3

Closed fredrikhr closed 7 years ago

fredrikhr commented 7 years ago

The current version of the Nim compiler (as of writing this issue), version 0.16.0 is not able to compile the genui script in the examples.

Nim compiler error output:

controlgallery.nim(30, 1) template/generic instantiation from here
controlgallery.nim(32, 22) Error: type mismatch: got (label: string, parent: NimNode, id: WxStandardID)
but expected one of:
proc constructwxStaticBox(parent: ptr WxWindow; id: WxWindowID; label: WxString;
                         pos: WxPoint = wxDefaultPosition;
                         size: WxSize = wxDefaultSize; style: clong = 0;
                         name: WxString = "groupBox"): WxStaticBox
proc constructwxStaticBox(): WxStaticBox