Skip to content

Commit 53afe15

Browse files
committed
tmp
1 parent fb0e3bc commit 53afe15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ class Typer extends Namer
584584
def handlePattern: Tree = {
585585
val tpt1 = typedTpt
586586
if (!ctx.isAfterTyper && pt != defn.ImplicitScrutineeTypeRef)
587-
constrainPatternType(tpt1.tpe, pt)(ctx.addMode(Mode.GADTflexible))
587+
constrainPatternType(SkolemType(tpt1.tpe), pt)(ctx.addMode(Mode.GADTflexible))
588588
// special case for an abstract type that comes with a class tag
589589
tryWithClassTag(ascription(tpt1, isWildcard = true), pt)
590590
}

0 commit comments

Comments
 (0)