diff options
author | liu fengyun <liu@fengy.me> | 2017-04-13 14:32:05 +0200 |
---|---|---|
committer | liu fengyun <liu@fengy.me> | 2017-04-13 14:32:05 +0200 |
commit | cf37737f56db7bc2f7429f78328dc5eea1716356 (patch) | |
tree | f5d643fd2e0f3b12cdcb339df112763645eae0be /compiler/src/dotty/tools | |
parent | 15e8d83a377398c9c13a5319a23645d10b14579a (diff) | |
download | dotty-cf37737f56db7bc2f7429f78328dc5eea1716356.tar.gz dotty-cf37737f56db7bc2f7429f78328dc5eea1716356.tar.bz2 dotty-cf37737f56db7bc2f7429f78328dc5eea1716356.zip |
fix #2253: avoid exception with refinement types
Diffstat (limited to 'compiler/src/dotty/tools')
-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 } |