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 AliasRecordConstructor;
type A := a;
type T := mkT {field : A};
syntax alias mkT' := mkT;
t : T :=
mkT'@{
field := a
};
juvix typecheck on the above file causes:
juvix: Maybe.fromJust: Nothing
CallStack (from HasCallStack):
error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
fromJust, called at src/Juvix/Compiler/Internal/Translation/FromConcrete.hs:761:16 in juvix-0.5.5-86FKWMdO6cV1eCQIhkrrGY:Juvix.Compiler.Internal.Translation.FromConcrete
The text was updated successfully, but these errors were encountered:
#2669)
* Closes#2664
As well as this fix we rename lens scopedIdenName to scopedIdenSrcName.
`scopedIdenSrcName` refers to the name of an identifier from the source
code. The name `scopedIdenName` is confusing because users of
`ScopedIden` may think that this lens refers to the only name associated
with `ScopedIden`, they may want `scopedIdenNameFinal` instead.
See https://github.com/anoma/juvix/tree/alias-record-constructor-bug for a failing test.
juvix typecheck
on the above file causes:The text was updated successfully, but these errors were encountered: