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
module aliases;
import Stdlib.Data.Nat open;
Name : Type := Nat;
syntax alias T := Name;
gives
/home/heliax/Documents/progs/juvix/aliases.juvix:7:19-23: error:
Symbol not in scope: Name
Perhaps you meant: Nat
However, typechecking
module aliases;
import Stdlib.Data.Nat open;
Name (A : Type) : Type := Nat;
syntax alias T := Name;
succeeds.
The problem seems to be that after merging PR #3138 the non-recursive definition names are not pre-reserved. The syntax alias declaration seems to be resolved in an earlier stage using the reserved names instead of using the defined ones later on.
The text was updated successfully, but these errors were encountered:
Typechecking
gives
However, typechecking
succeeds.
The problem seems to be that after merging PR #3138 the non-recursive definition names are not pre-reserved. The
syntax alias
declaration seems to be resolved in an earlier stage using the reserved names instead of using the defined ones later on.The text was updated successfully, but these errors were encountered: