In the normal case (when attributes aren't spread across module declaration and module header), we first filter duplicate/conflicting attributes before potentially showing more errors about the (first) attribute. Consider the expression @Int @Int @Nat 0, the output is:
In the normal case (when attributes aren't spread across module declaration and module header), we first filter duplicate/conflicting attributes before potentially showing more errors about the (first) attribute. Consider the expression
@Int @Int @Nat 0
, the output is:But for the anormal case, e.g:
It's:
The error about the attribute being internal should only show up once.
See: https://github.com/fmease/lushui/blob/b96e3a1e893d637d5bdef8c08f5b53bb6b4334c9/src/syntax/lowerer.rs#L351-L359