Skip to content

Commit 2e5999a

Browse files
committed
Revert SafeNull Mode
1 parent 52829cc commit 2e5999a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,8 +1193,7 @@ object Types extends TypeUtils {
11931193
*/
11941194
def matches(that: Type)(using Context): Boolean = {
11951195
record("matches")
1196-
withoutMode(Mode.SafeNulls)(
1197-
TypeComparer.matchesType(this, that, relaxed = !ctx.phase.erasedTypes))
1196+
TypeComparer.matchesType(this, that, relaxed = !ctx.phase.erasedTypes)
11981197
}
11991198

12001199
/** This is the same as `matches` except that it also matches => T with T and

0 commit comments

Comments
 (0)