summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/matching/AlgebraicMatchers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/AlgebraicMatchers.scala b/src/compiler/scala/tools/nsc/matching/AlgebraicMatchers.scala
index 28dc65ba77..0e39031a9e 100644
--- a/src/compiler/scala/tools/nsc/matching/AlgebraicMatchers.scala
+++ b/src/compiler/scala/tools/nsc/matching/AlgebraicMatchers.scala
@@ -80,7 +80,7 @@ trait AlgebraicMatchers requires TransMatcher {
),
If( super.toTree(root.and),
LabelDef(exit, List(result), Ident(result)),
- ThrowMatchError( _m.pos, resultType ))
+ ThrowMatchError( _m.pos, Ident(root.symbol) ))
);
}