We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3274bf1 commit e5f17ccCopy full SHA for e5f17cc
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1473,6 +1473,7 @@ object messages {
1473
val explanation =
1474
hl"""Only classes (not traits) are allowed to extend ${"AnyVal"}, but traits may extend
1475
|${"Any"} to become ${Green("\"universal traits\"")} which may only have ${"def"} members.
1476
+ |Universal traits can be mixed in to classes that extend ${"AnyVal"}.
1477
|"""
1478
}
1479
0 commit comments