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 0a28853 commit b2c2a86Copy full SHA for b2c2a86
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -777,7 +777,7 @@ class Typer extends Namer
777
}
778
val matched = ascription(tpt1, isWildcard = true)
779
// special case for an abstract type that comes with a class tag
780
- val result = tryWithTypeTest(ascribed, pt)
+ val result = tryWithTypeTest(matched, pt)
781
if (result eq matched) && pt != defn.ImplicitScrutineeTypeRef then
782
// no check for matchability if TestTest was applied
783
checkMatchable(pt, tree.srcPos, pattern = true)
0 commit comments