Skip to content
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

IPropertyReferenceOperation isn't produced for nameof(Prop) only in VB #65969

Open
Youssef1313 opened this issue Dec 13, 2022 · 2 comments
Open

Comments

@Youssef1313
Copy link
Member

Youssef1313 commented Dec 13, 2022

Public Class C
    Public Property P As String
    Public Sub M()
            Dim x = NameOf(P) ' Expecting property reference operation. Getting None operation.
    End Sub
End Class
public class C {
    public string P { get; }
    public void M() {
        var x = nameof(P); // This has property reference operation as expected.
    }
}
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 13, 2022
@sharwell sharwell added the Feature - IOperation IOperation label Jan 6, 2023
@arkalyanms arkalyanms added this to the 18.0 milestone Aug 15, 2023
@arkalyanms arkalyanms removed the untriaged Issues and PRs which have not yet been triaged by a lead label Aug 15, 2023
@mavasani mavasani removed this from the 18.0 milestone Sep 4, 2023
@mavasani mavasani removed their assignment Sep 4, 2023
@mavasani
Copy link
Member

mavasani commented Sep 4, 2023

Tagging @AlekseyTs @333fred

@AlekseyTs
Copy link
Contributor

Looks like a bug

@AlekseyTs AlekseyTs added the Bug label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants