- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.1k
 
Open
Labels
backlogNo work planned on this by the core team for the time being.No work planned on this by the core team for the time being.itype:enhancementprio:low
Description
In #4323 I was concerned about writing incorrect names for types in error messages.
Writing Expr' in the error seems a (separate?) bug:
15 |     case (IExpr(i1), IExpr(i2)) => IExpr(i1 + i2)
   |                                    ^^^^^^^^^^^^^^
   |                                    found:    Expr.IExpr
   |                                    required: Expr'[T]
   |                                    
   |                                    where:    Expr  is a object
   |                                              Expr' is a trait
because it's false that "Expr' is a trait". A bit better would be:
   |                                    where:    Expr  refers to object Expr
   |                                              Expr' refers to trait Expr
But even better would be to have a clearer syntax for these "footnotes", something where the annotation is more clearly separate from the Scala syntax. For instance, if we use @ (which is reserved and can't be used in types, I think):
   |                                    where:    Expr@1  refers to object Expr
   |                                              Expr@2 refers to trait Expr
LPTK and OlivierBlanvillain
Metadata
Metadata
Assignees
Labels
backlogNo work planned on this by the core team for the time being.No work planned on this by the core team for the time being.itype:enhancementprio:low