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

Warnings for unused exception declarations #5524

Closed
vicuna opened this issue Mar 6, 2012 · 1 comment
Closed

Warnings for unused exception declarations #5524

vicuna opened this issue Mar 6, 2012 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Mar 6, 2012

Original bug ID: 5524
Reporter: @alainfrisch
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2013-08-31T10:48:41Z)
Resolution: fixed
Priority: normal
Severity: minor
Category: typing

Bug description

In the same vein as the new warnings for various kinds of unused things, it would be useful to detect unused exception declarations. Exceptions could be treated very similarly to constructors, meaning that an exception which is captured (pattern-matching) but cannot be raised would be detected as being useless.

@vicuna
Copy link
Author

vicuna commented Mar 6, 2012

Comment author: @alainfrisch

Commit 12195.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants