Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same namespace symbols don't merge together #137

Open
veremenko-y opened this issue Sep 8, 2021 · 0 comments
Open

Same namespace symbols don't merge together #137

veremenko-y opened this issue Sep 8, 2021 · 0 comments

Comments

@veremenko-y
Copy link

veremenko-y commented Sep 8, 2021

Version: wiz version 0.1.2 (alpha)
Code to reproduce:

file1.wiz

import "file2";
namespace lib {
in prg {
    func foo() {
        zoo(); // fail
        lib.zoo(); // success
    }
}
}

file2.wiz

import "file1";

namespace lib {
in prg {
    func bar() {
        foo();
    }

    func zoo()  {
        
    }
}
}

Ran with wiz.exe src/file2.wiz -o out.bin

Output:

file1.wiz:6: error: could not resolve identifier `zoo`
* wiz: failed with 1 error(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant