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
This is about the definition of p. The error should point at the opening { and say that @ is missing.
Carlo was quite confused by this. It's hard to figure out what's wrong if you don't remember you need the @, and even if you do it's easy to miss and be confused, because the error points at the wrong place.
The error changes (but is still confusing) if we remove the final ; inside the record creation.
Typechecking:
module recordError;
import Stdlib.Prelude open;
type T :=
mkT {
x : Nat;
y : Nat
};
p : T :=
mkT {
x := 0;
y := 0
};
results in:
/home/heliax/Documents/progs/juvix/recordError.juvix:13:5-11: error:
Unexpected named arguments:
• x := 0
The text was updated successfully, but these errors were encountered:
Typechecking:
gives the error:
This is about the definition of
p
. The error should point at the opening{
and say that@
is missing.Carlo was quite confused by this. It's hard to figure out what's wrong if you don't remember you need the
@
, and even if you do it's easy to miss and be confused, because the error points at the wrong place.The error changes (but is still confusing) if we remove the final
;
inside the record creation.Typechecking:
results in:
The text was updated successfully, but these errors were encountered: