dotnet / dotnet/vblang

VB spec says that Me.M() operates on a COPY of Me in a struct

Open
#52 7 comments 0 reactions 0 assignees View on GitHub
Spec-Defect
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

The current state of the VB spec says that "Me" is a value, not a variable.

Therefore, in a struct type an invocation such as

Me.M()

Is required to operate on a copy of the current object and not modify it.

Worse, the simple invocation

M()

is defined to operate on the method group Me.M, so it too may not modify the current object.

Migrated from TFS/DevDiv 1040115
Migrated from https://github.com/dotnet/roslyn/issues/4686

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.