Skip to content

Commit

Permalink
Update compiler/src/dotty/tools/dotc/reporting/messages.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
aherlihy authored Feb 15, 2024
1 parent 97d41e1 commit a5aa2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/reporting/messages.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2778,7 +2778,7 @@ extends TypeMsg(NotClassTypeID), ShowMatchTrace(tp):
def explain(using Context) =
i"""A class type includes classes and traits in a specific order. Defining a class, even an anonymous class,
|requires specifying a linearization order for the traits it extends. For example, `A & B` is not a class type
|because it doesn't specify which trait takes precedence, A or B. For more information about class types, please see the Scala Language Specification 3.4.
|because it doesn't specify which trait takes precedence, A or B. For more information about class types, please see the Scala Language Specification.
|Class types also can't have refinements."""

class NotConstant(suffix: String, tp: Type)(using Context)
Expand Down

0 comments on commit a5aa2e9

Please sign in to comment.