Skip to content

Fix reporter reuse in TyperState#test #4262

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
Apr 15, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Apr 5, 2018

The previous logic was wrong: TyperState#test may be called by the
closure passed to TyperState#test, meaning that the testReporter may
already be in use at that point.

The previous logic was wrong: TyperState#test may be called by the
closure passed to TyperState#test, meaning that the testReporter may
already be in use at that point.
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@odersky odersky assigned smarter and unassigned odersky Apr 15, 2018
@smarter smarter merged commit 8f080a5 into scala:master Apr 15, 2018
@allanrenucci allanrenucci deleted the fix/typerstate-test branch April 15, 2018 18:38
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