diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-17 13:27:38 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-21 17:41:14 +0200 |
commit | 74490a2315ce8c38fdf6905e713e57005bf085c7 (patch) | |
tree | ed70dec976c29990f8583fb7033dca6f32b144d2 /src/dotty/tools/dotc/core/Decorators.scala | |
parent | ff96f13f0fb7f69d6dd747908281373031b9c545 (diff) | |
download | dotty-74490a2315ce8c38fdf6905e713e57005bf085c7.tar.gz dotty-74490a2315ce8c38fdf6905e713e57005bf085c7.tar.bz2 dotty-74490a2315ce8c38fdf6905e713e57005bf085c7.zip |
Fix DenotationNotDefinedHere in pattern matcher
This was uncovered by previous commit "Fix isSubType bug ...".
Also removed two redundants ".fresh" calls in "fresh.addMode".
Diffstat (limited to 'src/dotty/tools/dotc/core/Decorators.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Decorators.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Decorators.scala b/src/dotty/tools/dotc/core/Decorators.scala index 8aaef985c..d90b959ab 100644 --- a/src/dotty/tools/dotc/core/Decorators.scala +++ b/src/dotty/tools/dotc/core/Decorators.scala @@ -173,7 +173,7 @@ object Decorators { def treatSingleArg(arg: Any) : Any = try arg match { - case arg: Showable => arg.show(ctx.fresh.addMode(Mode.FutureDefsOK)) + case arg: Showable => arg.show(ctx.addMode(Mode.FutureDefsOK)) case _ => arg } catch { |