Skip to content

Commit 4057fb2

Browse files
committed
Fix typo in TypeMap
Surprisingly, this caused the IDE to crash with a MatchError. (previous pattern matcher, not new one). I could not work out why. But in any case it was the wrong pattern before.
1 parent 0717f18 commit 4057fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3750,7 +3750,7 @@ object Types {
37503750
if (underlying1 eq underlying) tp
37513751
else derivedAnnotatedType(tp, underlying1, mapOver(annot))
37523752

3753-
case tp @ WildcardType =>
3753+
case tp: WildcardType =>
37543754
derivedWildcardType(tp, mapOver(tp.optBounds))
37553755

37563756
case tp: JavaArrayType =>

0 commit comments

Comments
 (0)