I get this error message: main.nim(46, 5) Error: redefinition of 'toolbar'; previous declaration here: main.nim(46, 4)
for this: let toolbar = newToolbar() If I remove the let toolbar part and just pass the result of newToolbar() to the right function accepting a Toolbar then it compiles. It doesn't matter where I put the proc newToolbar*(): void definition - it can be in another file too. The definition of Toolbar is imported in another module(let's say X) which is imported in main.nim There's a newMenuBar() proc too which has the exact same signature(except it returns with a MenuBar) and almost the same implementation and it's imported in X too - but it doesn't yield an error. How to avoid this compiler bug?
