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.
2 parents 0e88077 + 2def876 commit 27feb81Copy full SHA for 27feb81
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -483,7 +483,7 @@ object desugar {
483
if (isEnum) {
484
val (enumCases, enumStats) = stats.partition(DesugarEnums.isEnumCase)
485
if (enumCases.isEmpty)
486
- ctx.error("Enumerations must constain at least one case", namePos)
+ ctx.error("Enumerations must contain at least one case", namePos)
487
val enumCompanionRef = TermRefTree()
488
val enumImport =
489
Import(enumCompanionRef, enumCases.flatMap(caseIds).map(ImportSelector(_)))
0 commit comments