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 52829cc commit 2e5999aCopy full SHA for 2e5999a
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1193,8 +1193,7 @@ object Types extends TypeUtils {
1193
*/
1194
def matches(that: Type)(using Context): Boolean = {
1195
record("matches")
1196
- withoutMode(Mode.SafeNulls)(
1197
- TypeComparer.matchesType(this, that, relaxed = !ctx.phase.erasedTypes))
+ TypeComparer.matchesType(this, that, relaxed = !ctx.phase.erasedTypes)
1198
}
1199
1200
/** This is the same as `matches` except that it also matches => T with T and
0 commit comments