diff options
author | liu fengyun <liu@fengy.me> | 2017-04-13 15:34:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 15:34:51 +0200 |
commit | 0fe56ea73e6775a315f54772dc6bfb40815c7c98 (patch) | |
tree | b7577f66688ed793a73ff543042a140e62cbe80d /compiler/src/dotty | |
parent | de6461ab17562dbb46a1ff094590e051d03cb54c (diff) | |
parent | fb4adc3c9c55476d2fe0deed22cff54e8e945406 (diff) | |
download | dotty-0fe56ea73e6775a315f54772dc6bfb40815c7c98.tar.gz dotty-0fe56ea73e6775a315f54772dc6bfb40815c7c98.tar.bz2 dotty-0fe56ea73e6775a315f54772dc6bfb40815c7c98.zip |
Merge pull request #2257 from dotty-staging/fix-2253
Fix #2253: avoid match exception in case of refinement types
Diffstat (limited to 'compiler/src/dotty')
-rw-r--r-- | compiler/src/dotty/tools/dotc/transform/patmat/Space.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala b/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala index 229545a57..fe2983896 100644 --- a/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala +++ b/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala @@ -537,6 +537,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic { tp.refinedName, tpb.derivedTypeBounds(follow(lo, false), follow(hi, true)) ) + case tp => tp } case _ => tp } |