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 3277d9d commit 1bec039Copy full SHA for 1bec039
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -1741,7 +1741,7 @@ object desugar {
1741
def traverse(tree: untpd.Tree)(implicit ctx: Context): Unit = tree match {
1742
case Splice(expr) => collect(expr)
1743
case TypSplice(expr) =>
1744
- ctx.error("Type splices cannot ve used in val patterns. Consider using `match` instead.", tree.sourcePos)
+ ctx.error("Type splices cannot be used in val patterns. Consider using `match` instead.", tree.sourcePos)
1745
case _ => traverseChildren(tree)
1746
}
1747
}.traverse(expr)
0 commit comments