Open shmish111 opened 4 years ago
Check
f : A -> A f a = let x = record { fieldA = 1 } a in ?x
Checks successfully
Errors (1) Test.idr:203:13 While processing right hand side of f at Test.idr:202:1--205:1: Can't infer type for this record update
However if I replace ?x with x it will type check.
?x
x
I can't reproduce this because you haven't included the full example.
Ooops:
record A where constructor MkR fieldA : Int f : A -> A f a = let x = record { fieldA = 1 } a in ?x
Steps to Reproduce
Check
Expected Behavior
Checks successfully
Observed Behavior
However if I replace
?x
withx
it will type check.