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 Foo
%defaulttotal
%prefix_record_projections off
dataNameKind=NameNameTy: NameKind ->TypeNameTyName=String
record Personwherename: String
record Dept nk wherename: NameTy nk
foo: Dept Name -> String ->Bool
foo d name = d.name == name
Typechecks successfully — just as it does if Dept is de-NameKind-ized or if Person is removed.
Observed Behavior
Error: While processing right hand side of foo. When unifying:
Dept Name
and:
Person
Mismatch between: Dept Name and Person.
Foo:18:14--18:15
14 | record Dept nk where
15 | name : NameTy nk
16 |
17 | foo : Dept Name -> String -> Bool
18 | foo d name = d.name == name
^
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
Try typechecking
gist
Expected Behavior
Typechecks successfully — just as it does if
Dept
is de-NameKind
-ized or ifPerson
is removed.Observed Behavior
The text was updated successfully, but these errors were encountered: