-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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
Also please sign the Scala CLA |
Done.
Thank you!
… On 23 Jun 2018, at 18:10, Allan Renucci ***@***.***> wrote:
Also please sign the Scala CLA <https://www.lightbend.com/contribute/cla/scala>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#4711 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AaqwDm4z5bNKoAM_1soRAzzKwfcvlKsdks5t_nZqgaJpZM4U002W>.
|
CLA signed off. Confirmed from The Scala Team. |
CLA signed. Thanks @janrock-ylb for the contribution |
Test: Passed