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

Using this in member initilization puts an extra period in front of self #8

Closed
DataEncoded opened this issue Jul 30, 2024 · 1 comment

Comments

@DataEncoded
Copy link

When using this in method initialization, an extra dot is placed in front of the self variable.
C#:

this.tag = remoteTag;

converts to

.self.tag = remoteTag

However, if you don't use this.tag, and just convert it to

tag = remoteTag

it converts correctly

self.tag = remoteTag

While using this in this.tag = remoteTag is useless, it is needed for something like this.tag = tag if the tag is used in an constructor with a parameter of the same name.

@R-unic
Copy link
Collaborator

R-unic commented Jul 30, 2024

Damn I thought about this the other day and forgot about it. Will be fixed soon.

@R-unic R-unic closed this as completed in 9f51e0b Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants