Skip to content

Symbol completion doesn't work on empty nameof in certain attributes #60812

@jcouv

Description

@jcouv
        [Fact]
        public async Task ParameterNotAvailableInMethodAttributeNameofWithNoArgument()
        {
            var source = @"
class C
{
    [Some(nameof($$))]
    void M(int parameter) { }
}
";
            // An invocation may not be considered a 'nameof' operator unless it has one argument
            await VerifyItemIsAbsentAsync(MakeMarkup(source), "parameter");
        }

Relates to #40524

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions