This looks like a bug with `parseStmt`. I think the module resolution is done 
relative to `macros.nim` instead of relative to the module which called 
`parseStmt`. Here is a version that works and doesn't hard code the module name:
    
    
    import macros
    macro loadModule(module: static[string]): typed =
        result = quote do:
            import `module`
    loadModule "myModule"
    

Reply via email to