Skip to content

Fix #2789 #3753

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
Jan 5, 2018
Merged

Fix #2789 #3753

merged 2 commits into from
Jan 5, 2018

Conversation

allanrenucci
Copy link
Contributor

Closing #1424 too?

@@ -115,4 +115,9 @@ class ReplCompilerTests extends ReplTest {
// storedOutput().startsWith("scala.MatchError: null")
// }
}

@Test def i2789: Unit = fromInitialState { implicit state =>
compile("(x: Int) => println(x)")
Copy link
Member

Choose a reason for hiding this comment

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

Why not put this in a repl script test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it prints something like this:

val res0: Int => Unit = Lambda$1423/1112073835@3e6534e7

which is not deterministic

@@ -93,27 +93,27 @@ class ReplCompilerTests extends ReplTest {
)
}

@Test def i3305: Unit = {
// FIXME: Tests are not run in isolation, the classloader is corrupted after the first exception
Copy link
Member

Choose a reason for hiding this comment

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

Open an issue for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@smarter
Copy link
Member

smarter commented Jan 4, 2018

Do you know what PR fixed the underlying problem with anonymous function parsing?

@allanrenucci
Copy link
Contributor Author

Do you know what PR fixed the underlying problem with anonymous function parsing?

a886cd4#diff-69c8fd9135f88af62a8b7073df7c69c7R102

Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

Please add "Fixed in 023303d" to the commit message.

@smarter smarter merged commit d96e255 into scala:master Jan 5, 2018
@allanrenucci allanrenucci deleted the fix-#2789 branch January 5, 2018 13:43
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