Skip to content

Commit 502e7e7

Browse files
committed
More detail in explanation for 'traits cannot extend AnyVal'
1 parent e5f17cc commit 502e7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ object messages {
14731473
val explanation =
14741474
hl"""Only classes (not traits) are allowed to extend ${"AnyVal"}, but traits may extend
14751475
|${"Any"} to become ${Green("\"universal traits\"")} which may only have ${"def"} members.
1476-
|Universal traits can be mixed in to classes that extend ${"AnyVal"}.
1476+
|Universal traits can be mixed into classes that extend ${"AnyVal"}.
14771477
|"""
14781478
}
14791479

0 commit comments

Comments
 (0)