Open ohad opened 3 years ago
My understanding of the situation: at the moment we introduce implicits when we elaborate the type of the constructor. So all of the unnamed variables become implicit fields in the record.
But when the variable is used in the telescope of parameters we'd like it to be bound as an implicit parameter, not as a field.
We need to add an extra step spotting the unbound implicits in the raw parameters to generate the list of actual parameters.
The file of interest is TTImp.ProcessRecord
.
(Sorry about the title, happy to change if you have any suggestion!)
Steps to Reproduce
Expected Behavior
Both typecheck
Observed Behavior
Fails
gives the error: