Skip to content

Fix LazyRef#ref error recovery #7446

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
Oct 26, 2019
Merged

Conversation

smarter
Copy link
Member

@smarter smarter commented Oct 22, 2019

The throw keyword was missing, so the call to CyclicReference did
not actually do anything. This means that LazyRef#ref could return null
when typechecking broken code, which could lead to a
NullPointerException (I observed this while compiling some code but
didn't manage to minimize it).

The `throw` keyword was missing, so the call to `CyclicReference` did
not actually do anything. This means that LazyRef#ref could return null
when typechecking broken code, which could lead to a
NullPointerException (I observed this while compiling some code but
didn't manage to minimize it).
@odersky odersky merged commit 1165e98 into scala:master Oct 26, 2019
@odersky odersky deleted the fix-lazyref branch October 26, 2019 10:59
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.

2 participants