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

Add diagnostic for nested argument constraint #3

Open
thomaslevesque opened this issue Aug 7, 2017 · 0 comments
Open

Add diagnostic for nested argument constraint #3

thomaslevesque opened this issue Aug 7, 2017 · 0 comments
Labels
enhancement New feature or request

Comments

@thomaslevesque
Copy link
Member

Related to FakeItEasy/FakeItEasy#1177

Now that nested argument constraints are explicitly forbidden, the analyzer could detect them and issue an error diagnostic.

For instance, this would trigger a diagnostic:

A.CallTo(() => fake.Bar(new Foo(A<int>._))).Returns(42);

Id: FakeItEasy0007
Title: Nested argument constraints are not supported.
Message: The argument constraint A<int>._ is nested in argument new Foo(A<int>._), which isn't supported.
Severity: Error

@blairconrad blairconrad transferred this issue from FakeItEasy/FakeItEasy Dec 8, 2019
@thomaslevesque thomaslevesque added the enhancement New feature or request label Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant