We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8495c06 commit ad60596Copy full SHA for ad60596
compiler/src/dotty/tools/dotc/core/PatternTypeConstrainer.scala
@@ -180,7 +180,7 @@ trait PatternTypeConstrainer { self: TypeComparer =>
180
def registerPattern = ctx.gadt.addToConstraint(patternPath) // Pattern path is a freshly-created skolem,
181
// so it will always be un-registered at this point
182
183
- val result = registerScrutinee && registerPattern && {
+ val res = !registerScrutinee || !registerPattern || {
184
val scrutineeTypeMembers = Map.from {
185
ctx.gadt.registeredTypeMembers(scrutineePath) map { x => x.name -> x }
186
}
0 commit comments