You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
This kind of thing should not be allowed in the compiler (but ideally should be allowed in the REPL for the sake of experimentation). The check can be implemented as part of the typechecker.
define constant x = 5
define constant x = 6
The text was updated successfully, but these errors were encountered:
I don't see a problem with this code. Also having the REPL behavior differ from the one in Ergo is a nuisance since we have to maintain both behaviors.
Enums support is based on constants, which means there can be shadowing. We should make this a compiler warning (using the recently added #300 support).
This kind of thing should not be allowed in the compiler (but ideally should be allowed in the REPL for the sake of experimentation). The check can be implemented as part of the typechecker.
The text was updated successfully, but these errors were encountered: