[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 https://github.com/dotnet/roslyn/issues/40524