aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast
diff options
context:
space:
mode:
authorShane Delmore <shane@delmore.io>2016-10-24 18:20:29 -0700
committerShane Delmore <shane@delmore.io>2016-10-25 14:37:00 -0700
commita2245dde469e29b0a93479a73961511e269b7440 (patch)
tree8a17ff1e9bb34d43bf6e2a04fcb54279c3c2c3df /src/dotty/tools/dotc/ast
parent63f1a3c5d0149d173eb8f65405b5983591752229 (diff)
downloaddotty-a2245dde469e29b0a93479a73961511e269b7440.tar.gz
dotty-a2245dde469e29b0a93479a73961511e269b7440.tar.bz2
dotty-a2245dde469e29b0a93479a73961511e269b7440.zip
Update IllegalVariableInPatternAlternative error message
Diffstat (limited to 'src/dotty/tools/dotc/ast')
-rw-r--r--src/dotty/tools/dotc/ast/Desugar.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/Desugar.scala b/src/dotty/tools/dotc/ast/Desugar.scala
index 8b8e0b318..639dac930 100644
--- a/src/dotty/tools/dotc/ast/Desugar.scala
+++ b/src/dotty/tools/dotc/ast/Desugar.scala
@@ -1051,7 +1051,7 @@ object desugar {
elems foreach collect
case Alternative(trees) =>
for (tree <- trees; (vble, _) <- getVariables(tree))
- ctx.error("illegal variable in pattern alternative", vble.pos)
+ ctx.error(IllegalVariableInPatternAlternative(), vble.pos)
case Annotated(arg, _) =>
collect(arg)
case InterpolatedString(_, segments) =>