Comments (4)
According to "nameof operator - v5", it should work.
And it works for U
.
from roslyn.
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
from roslyn.
Accidentally closed the issue :/
from roslyn.
Assigning to @agocke for verification.
from roslyn.
Related Issues (20)
- [Automated] PRs inserted in VS build main-34626.67
- `SyntaxFacts`'s `GetXXXKinds` methods can return nonexistent syntax kinds HOT 1
- `SyntaxFacts`' method can make assumptions aboun nonexistent syntax kinds HOT 2
- Getting ghost lightbulbs lately HOT 1
- Suspicious logic in `AbstractFlowPass.IsNonPrimitiveValueType`
- Suspicious logic in `TypeSymbolExtensions.IsValidEnumType`
- List SetCount/AsSpan optimization should produce a list with same capacity as List made with new/Add HOT 4
- [Automated] PRs inserted in VS build main-34628.19
- Publish a source package for the editorconfig parser HOT 1
- Roslyn Crash HOT 1
- CallerArgumentExpression does not work with dynamic HOT 1
- CA2000 IDisposable.Dispose does not understand variable aliasing. HOT 2
- CA1012 Abstract type should not have public constructors HOT 3
- EnC fails when replacing generated regex attribute string
- [Bug]: `Extract to static readonly field` code fix does not generate required field HOT 1
- IDE0251 (Make member readonly) false positive when GetEnumerator() is not readonly
- [Bug]: Suggestion `IDE0300` does not appear for arguments in primary constructor's base class constructor HOT 2
- [Bug]: Choosing IntelliSense member for `abstract override` does not generate corresponding code snippet
- Exception from Visual Studio while coding - "Enable and ignore future errors" does not work HOT 2
- [Bug]: Code fix `Convert to regular constructor` generates incorrectly for class without body
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roslyn.