We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Operating System: Windows
moon 0.1.20250121 (a825806 2025-01-21) ~\.moon\bin\moon.exe moonc v0.1.20250121+7fc3467ab ~\.moon\bin\moonc.exe moonrun 0.1.20250121 (a825806 2025-01-21) ~\.moon\bin\moonrun.exe
top.mbt :
top.mbt
///| pub type A Int ///| pub type B Int ///| pub fn A::from_int(x : Int) -> A { A(x) } ///| pub fn B::from_int(x : Int) -> B { B(x) }
mod.pkg.json:
mod.pkg.json
{ "link": { "js": { "exports": [ "from_int" ] } } }
run moon build --target=js
moon build --target=js
Throw an error to remind that there is a duplicate name.
Build succeeds. target/js/release/project1.js:
target/js/release/project1.js
function username$project1$$A$from_int(x) { return x; } function username$project1$$B$from_int(x) { return x; } export { username$project1$$A$from_int as from_int, username$project1$$B$from_int as from_int }
The text was updated successfully, but these errors were encountered:
In addition, I'd like to ask if a feature to "export only A::from_int" will be provided.
A::from_int
Sorry, something went wrong.
cc @Guest0x0
Yu-zh
No branches or pull requests
Bug Report
Environment
OS
Operating System: Windows
MoonBit CLI Tools Version
Steps to Reproduce
top.mbt
:mod.pkg.json
:run
moon build --target=js
Expected Behavior
Throw an error to remind that there is a duplicate name.
Actual Behavior
Build succeeds.
target/js/release/project1.js
:Checklist
The text was updated successfully, but these errors were encountered: