Skip to content

Commit 97d41e1

Browse files
authored
Apply suggestions from code review
1 parent b1ad67e commit 97d41e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -2778,7 +2778,7 @@ extends TypeMsg(NotClassTypeID), ShowMatchTrace(tp):
27782778
def explain(using Context) =
27792779
i"""A class type includes classes and traits in a specific order. Defining a class, even an anonymous class,
27802780
|requires specifying a linearization order for the traits it extends. For example, `A & B` is not a class type
2781-
|because it doesn't specify which trait takes precedence, A or B. Both the list `A,B` and `B,A` are class types.
2781+
|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.
27822782
|Class types also can't have refinements."""
27832783

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

0 commit comments

Comments
 (0)