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 7577342 commit 2def876Copy full SHA for 2def876
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