aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-01-02 14:45:48 +0700
committerMartin Odersky <odersky@gmail.com>2017-01-02 14:45:57 +0700
commit7a5f27108080226569e7eee1dc9bb7ef6da2b7ac (patch)
treea396d00e587f3df2c81cb49ba23d15438f64ad2b /compiler/src/dotty/tools/dotc/typer/Typer.scala
parent328ded4d8f8e5c82a053253c26da7042ca657d65 (diff)
downloaddotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.tar.gz
dotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.tar.bz2
dotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.zip
Fix #1868 - Fix logic bug in match
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/typer/Typer.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala
index fe158dfe2..6dd3f45fc 100644
--- a/compiler/src/dotty/tools/dotc/typer/Typer.scala
+++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -1150,7 +1150,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
// classes defined in a such arguments should not be entered into the
// enclosing class.
c.exprContext(mdef, exprOwner)
- case None => c
+ case _ => c
}
}
// necessary in order to mark the typed ahead annotations as definitely typed: