Skip to content

Fix #4674: Add regression test #4711

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 16, 2018
Merged

Fix #4674: Add regression test #4711

merged 2 commits into from
Jul 16, 2018

Conversation

janrockdev
Copy link

Test: Passed

Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM. Thanks again @janrock-ylb

def T(x: String) = {
x.foreach {
case 's' => println("s")
case c: Char => println(c) // error
Copy link
Contributor

@allanrenucci allanrenucci Jun 23, 2018

Choose a reason for hiding this comment

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

Can you write // error: type test always succeed instead. Otherwise we don't know what the error is without running the test

case c: Char => println(c) // error
}
}
T("test")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not needed. I would remove it. We try to keep tests as small as possible

@allanrenucci
Copy link
Contributor

Also please sign the Scala CLA

@janrockdev
Copy link
Author

janrockdev commented Jun 23, 2018 via email

@janrockdev
Copy link
Author

CLA signed off. Confirmed from The Scala Team.

@allanrenucci
Copy link
Contributor

CLA signed. Thanks @janrock-ylb for the contribution

@allanrenucci allanrenucci merged commit 76972ab into scala:master Jul 16, 2018
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