Hello,
I am doing a simple test with tables and have problems using import.
I have a file Image.nim:
type
Image* = ref object of RootObj
filepath*: string
Run
And a main file:
import tables
import Image
var imgTable: Table[string, Image]
imgTable["hello"] = Image(filepath: "world")
echo imgTable["hello"].filepath
Run
When compiling I have the following issue:
_main.nim(6, 9) Error: type mismatch: got <Table[system.string, void], string,
Image>_
Why my value type is recognized as void ? Image type seems to be recognized...
I am using nim 1.2.0