Lyricdev
GitHub

LYR-RES0008

a module header

error ยท spec 04-modules

A file begins with a module header that names a path: module tools.gen;.

Explanation

A module is named by its file's path, and nothing else. A header that said the name again could only agree with the path or contradict it, so it is gone.

Remove the header; move the file to the path the module should have.

Wrong

module tools.gen;

fn main(): void {
}
fn main(): void {
}