-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
bugSomething isn't workingSomething isn't workingcompilerproblem with compilerproblem with compilerfixed-in-2022.1Issues that have been closed for the 2022.1 releaseIssues that have been closed for the 2022.1 releasegforgebug (or feature request) ported from smlnj-gforge repositorybug (or feature request) ported from smlnj-gforge repository
Description
Version
110.82
Operating System
- All
- Linux
- macOS
- Windows
- Other Unix
OS Version
No response
Processor
Any
Component
Core system
Severity
Cosmetic
Description of the problem
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)
Expected Behavior
No response
Steps to Reproduce
fun f [] = 0
| f (x::xs) y = 1;
Additional Information
No response
Email address
No response
Comments from smlnj-gforge
Original smlnj-gforge bug number 204
Submitted on 2018-37-19 at 14:3700
Keywords: Pretty printing
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompilerproblem with compilerproblem with compilerfixed-in-2022.1Issues that have been closed for the 2022.1 releaseIssues that have been closed for the 2022.1 releasegforgebug (or feature request) ported from smlnj-gforge repositorybug (or feature request) ported from smlnj-gforge repository