-
Notifications
You must be signed in to change notification settings - Fork 1
Fix for issue #6 #7
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #7 +/- ##
=======================================
Coverage 10.05% 10.05%
=======================================
Files 12 12
Lines 577 577
=======================================
Hits 58 58
Misses 519 519 ☔ View full report in Codecov by Sentry. |
Making |
You're right. Figured out it is also not necessary. Using Potentially interesting could be to support two delegate expressions. An immutable one and a mutable one. |
@fsitok Using |
The difference between One alternative solution I thought of is to replace all The problem is that, in this case, |
So far we have just dealt with delegation targets in the form |
An alternative solution is to use destructuring. If we somehow write let Self { field, .. } = self; then it does not require any special handling for references, although it's specific to field support. |
The core fix makes a case distinction when the
delegate_expr
isself
.I'm not sure if the below check is the best way to check for equality to
self
. But it works.