Skip to content

Fix leak checking #6782

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 2 commits into from
Jul 1, 2019
Merged

Fix leak checking #6782

merged 2 commits into from
Jul 1, 2019

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 1, 2019

When compiling Parsers.scala with mismatched braces, I saw

java.lang.AssertionError: assertion failed: leak: <error no implicit values were found that match type dotty.tools.dotc.core.Contexts.Context>
[error]   (
[error] vdef) in ...

The issue is here that we should disregard leaks with erroneous types.

When compiling Parsers.scala with mismatched braces, I saw

```
java.lang.AssertionError: assertion failed: leak: <error no implicit values were found that match type dotty.tools.dotc.core.Contexts.Context>
[error]   (
[error] vdef) in ...
```
The issue is here that we should disregard leaks with erroneous types.
Co-Authored-By: Guillaume Martres <smarter@ubuntu.com>
@odersky odersky merged commit 317505e into scala:master Jul 1, 2019
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