moonbit-docs
moonbit-docs copied to clipboard
compiler should report warning when user define type name the same as `intrinsic types` like Int, Double
In MoonBit, Int/Double etc. are compiler builtin types, so there is no need to export them: they are universally available, unqualified.
Defining custom type with the same name as builtin types can cause a lot of confusion for code reader. So we may disable this in the future.
https://github.com/moonbitlang/core/issues/1899#issuecomment-2789055909
Related Issues #1899