diff options
author | Martin Odersky <odersky@gmail.com> | 2017-01-02 14:45:48 +0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-01-02 14:45:57 +0700 |
commit | 7a5f27108080226569e7eee1dc9bb7ef6da2b7ac (patch) | |
tree | a396d00e587f3df2c81cb49ba23d15438f64ad2b /compiler/src/dotty/tools/dotc/typer/Typer.scala | |
parent | 328ded4d8f8e5c82a053253c26da7042ca657d65 (diff) | |
download | dotty-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.scala | 2 |
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: |