Skip to content

Fix #11299: Disallow implicit search on TermRef of Null #11312

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

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

noti0na1
Copy link
Member

@noti0na1 noti0na1 commented Feb 4, 2021

Fix #11299

If from.tpe is a TermRef to a Null value, from.tpe.isRef(defn.NullClass) is false, which causes implicit search on the tree.

@noti0na1 noti0na1 requested a review from smarter February 4, 2021 06:48
@smarter smarter merged commit afb8031 into scala:master Feb 4, 2021
@smarter smarter deleted the fix-i11299 branch February 4, 2021 16:39
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Null type variables can be assigned to value types
3 participants