Version Used:
Visual Studio 17.14.0 Preview 7.0
Steps to Reproduce:
internal static class Extensions
{
extension (object)
{
public static string Name => nameof(Name);
}
}
Diagnostic Id:
CS0103: The name 'Name' does not exist in the current context
Expected Behavior:
I expect it to compile and return "Name";
Actual Behavior:
Only nameof(get_Name) compiles.