Skip to content
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

SI-2807 Avoid catch all warning for Stable Id patterns #798

Merged
merged 1 commit into from Jul 2, 2012

Conversation

retronym
Copy link
Member

Review by @dragos

@scala-jenkins
Copy link

Started jenkins job pr-scala-testsuite-linux-opt at https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/379/

@adriaanm
Copy link
Contributor

wouldn't it be possible to use treeInfo.catchesAllOf here?

@retronym
Copy link
Member Author

That would flag case x: Throwable, which we want to allow. (Paul's original version of the warning used that method)

@scala-jenkins
Copy link

jenkins job pr-scala-testsuite-linux-opt: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/379/

@adriaanm
Copy link
Contributor

adriaanm commented Jul 2, 2012

right you are

I still think it would be nice to factor out the test to TreeInfo
though it's not a show stopper for this pull request, as far as I'm concerned

@dragos
Copy link
Contributor

dragos commented Jul 2, 2012

LGTM!

adriaanm added a commit that referenced this pull request Jul 2, 2012
SI-2807 Avoid catch all warning for Stable Id patterns
@adriaanm adriaanm merged commit b0d70be into scala:master Jul 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants