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 a way to annotate static types #2

Closed
vbfox opened this issue Sep 18, 2015 · 0 comments
Closed

Add a way to annotate static types #2

vbfox opened this issue Sep 18, 2015 · 0 comments
Labels
Milestone

Comments

@vbfox
Copy link
Owner

vbfox commented Sep 18, 2015

Linked to #1 but static types can't be used as type arguments so AnnotateType<T> can't be called.

The following syntax need to be usable :

annotator.AnnotateStatic(() => Foo.MyMethod(Some<string>()));
annotator.AnnotateStatic(() => Foo.MyMethod(Some<string>()) == NotNull<string>());

The syntax should work when the type is fully static or as an alternative to #1 to annotate a static method of a non-static type.

vbfox added a commit that referenced this issue Sep 21, 2015
@vbfox vbfox closed this as completed in a3b0772 Sep 21, 2015
@vbfox vbfox modified the milestone: 2.0 Sep 21, 2015
@vbfox vbfox added the feature label Sep 21, 2015
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

1 participant