Skip to content

Fix #1463: add test case #3170

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
Sep 27, 2017
Merged

Fix #1463: add test case #3170

merged 1 commit into from
Sep 27, 2017

Conversation

liufengyun
Copy link
Contributor

Add test case for #1463 .

@liufengyun liufengyun merged commit 1f5343c into scala:master Sep 27, 2017
@liufengyun liufengyun deleted the fix-1463 branch September 27, 2017 20:46

def f0(x: Any) = x match { case Bob2 => Bob2 }
def f1(x: Any) = x match { case Bob => Bob }
// def f2(x: Any): Bob.type = x match { case x @ Bob => x } // should not type check
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a neg test for that?

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.

3 participants