Weird RDMD error when trying to import source file from subfolder.

Julian Fondren julian.fondren at gmail.com
Wed Nov 1 16:35:41 UTC 2023


On Wednesday, 1 November 2023 at 16:24:04 UTC, BoQsc wrote:
> **Error:**
>
> ```
> rdmd testimport.d
> testimport.d(2): Error: module `next` from file waffle\next.d 
> must be imported with 'import next;'
> ```

You import 'waffle.next', but the module is inferred to be 
'next'. If put `module waffle.next;` at the top of next.d, this 
works.


More information about the Digitalmars-d-learn mailing list