File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -354,11 +354,8 @@ class SpaceEngine(using Context) extends SpaceLogic {
354354 case pat : Ident if isBackquoted(pat) =>
355355 Typ (pat.tpe, decomposed = false )
356356
357- case Ident (nme.WILDCARD ) =>
358- Typ (erase(pat.tpe.stripAnnots, isValue = true ), decomposed = false )
359-
360357 case Ident (_) | Select (_, _) =>
361- Typ (erase(pat.tpe.stripAnnots, isValue = true ), decomposed = false )
358+ Typ (erase(pat.tpe.stripAnnots.widenSkolem , isValue = true ), decomposed = false )
362359
363360 case Alternative (trees) =>
364361 Or (trees.map(project(_)))
Original file line number Diff line number Diff line change 1+ object Test {
2+ sealed trait Base
3+ class Blub extends Base
4+ object Blub {
5+ def unapply (blub : Blub ): Some [(Int , blub.type )] =
6+ Some (1 -> blub)
7+ }
8+
9+ (null : Base ) match {
10+ case Blub (i, x) => println(i)
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments