-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Method generic type parameters are out of parameter list scope for 'nameof' expression #42
Labels
Area-Compilers
Bug
Language-C#
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Verified
Milestone
Comments
According to "nameof operator - v5", it should work. And it works for |
Ugh, according to examples from v5 spec, maybe this is not a bug... [Foo(nameof(T))] void f<T> { }
// result error "T not defined": A method type parameter is not in scope in an attribute on that method void f([Attr(nameof(x))] int x) {}
// result error "x is not defined": A parameter is not in scope in an attribute on that parameter, or any parameter in the method |
Accidentally closed the issue :/ |
gafter
added a commit
to gafter/roslyn
that referenced
this issue
Feb 16, 2015
…efault value Fixes dotnet#42
Assigning to @agocke for verification. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area-Compilers
Bug
Language-C#
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Verified
It compiles as expected in CTP4, but fails in current 'master'. Maybe related to #40.
The text was updated successfully, but these errors were encountered: