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
{{ message }}
Repository navigation
Pretty printing of Absyn in error message does not respect fixity #141
The error message prints '::' as a prefix operator, instead of as an infix operator. This behavior is a regression, since previous versions got it right (see tests/bugs/outputs/bug0027.out for example).
Transcript
Standard ML of New Jersey v110.82 [built: Sat Oct 14 13:08:58 2017]
- fun f [] = 0
= | f (x::xs) y = 1;
stdIn:1.6-2.20 Error: clauses don't all have same number of patterns
stdIn:1.6-2.20 Error: parameter or result constraints of clauses don't agree [tycon mismatch]
this clause: 'Z list * 'Y -> 'X
previous clauses: 'W list -> 'X
in declaration:
f = (fn nil => 0
| (:: <pat>,y) => 1)
Fixed in 2022.1 (as well as smlnj/legacy). Used new function AbsynUtil.headStripPat in PPAbsyn..ppDconPat to strip MARKpat from the argument pattern in the APPpat case of ppDconPat'. Fix modifies ElabData/syntax/ppabsyn.sml and absynutil.sml. Also moved some PPAbsyn debug and print flags to ElabDataControl (ElabData/main/edcontrol.*.
Activity
dmacqueen commentedon Jul 22, 2022
Fixed in 2022.1 (as well as smlnj/legacy). Used new function AbsynUtil.headStripPat in PPAbsyn..ppDconPat to strip MARKpat from the argument pattern in the APPpat case of ppDconPat'. Fix modifies ElabData/syntax/ppabsyn.sml and absynutil.sml. Also moved some PPAbsyn debug and print flags to ElabDataControl (ElabData/main/edcontrol.*.