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

Incorrect analysis of expression-bodied read-only properties. #83

Open
KFAFSP opened this issue Jan 20, 2019 · 0 comments
Open

Incorrect analysis of expression-bodied read-only properties. #83

KFAFSP opened this issue Jan 20, 2019 · 0 comments
Labels

Comments

@KFAFSP
Copy link

KFAFSP commented Jan 20, 2019

When defining a read-only expression-bodied property, Exceptional fails to recognize the throw statement in the expression and indicates that I documented an exception that is not thrown.

Example:

/// <exception cref="InvalidOperationException">Optional is absent.</exception>
public T Value => IsPresent ? Unpack : throw new InvalidOperationException(C_Absent);

This consistently happens. It does work for expression-bodied properties that do not omit the get and the block that goes with it (but I consider that inconsistent style for these properties).

@ManticSic ManticSic added the bug label Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants