Skip to content

Commit 27feb81

Browse files
Merge pull request #7496 from dotty-staging/fix-typo
Fix typo in error message
2 parents 0e88077 + 2def876 commit 27feb81

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)