Skip to content

Commit b2c2a86

Browse files
committed
Fix typo
1 parent 0a28853 commit b2c2a86

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
@@ -777,7 +777,7 @@ class Typer extends Namer
777777
}
778778
val matched = ascription(tpt1, isWildcard = true)
779779
// special case for an abstract type that comes with a class tag
780-
val result = tryWithTypeTest(ascribed, pt)
780+
val result = tryWithTypeTest(matched, pt)
781781
if (result eq matched) && pt != defn.ImplicitScrutineeTypeRef then
782782
// no check for matchability if TestTest was applied
783783
checkMatchable(pt, tree.srcPos, pattern = true)

0 commit comments

Comments
 (0)