-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove special overriding logic for explicit nulls #22243
base: main
Are you sure you want to change the base?
Conversation
The changes LGTM, but we'll need to get the CI running first. There we see:
The type of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question about the ctx for matches
. Otherwise LGTM
val overrideCtx = if ctx.explicitNulls then ctx.relaxedOverrideContext else ctx | ||
TypeComparer.matchesType(this, that, relaxed = !ctx.phase.erasedTypes)(using overrideCtx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need to remove the SafeNull
mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I believe the comment above explains why. (and it also doesn't pass the tests without it)
Fixes #22071