Skip to content

Commit 2def876

Browse files
committed
Fix typo in error message
1 parent 7577342 commit 2def876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ object desugar {
483483
if (isEnum) {
484484
val (enumCases, enumStats) = stats.partition(DesugarEnums.isEnumCase)
485485
if (enumCases.isEmpty)
486-
ctx.error("Enumerations must constain at least one case", namePos)
486+
ctx.error("Enumerations must contain at least one case", namePos)
487487
val enumCompanionRef = TermRefTree()
488488
val enumImport =
489489
Import(enumCompanionRef, enumCases.flatMap(caseIds).map(ImportSelector(_)))

0 commit comments

Comments
 (0)