-
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
Unexpected scoping on type parameter of local function parameter #60110
Comments
Is semantic model having the same issue? roslyn/src/Compilers/CSharp/Portable/Compilation/CSharpSemanticModel.cs Lines 1596 to 1608 in 98b3931
Tests for semantic model may include |
There are only 3 usages of The usages are:
|
It seems like usage of the type parameter outside of nameof() always results in an error here. It's perhaps not urgent to address this unless some new valid way of using the type parameter in an attribute arises. |
I think it would be interesting to test with |
Note: this is a different than #59775
The difference in behavior between the method and the local function is this code in
BindIdentifier
:Relates to test plan #38801
The text was updated successfully, but these errors were encountered: