Support for explicitly pass this
receiver as a parameter of method
#5889
Labels
kind: enhancement
Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny
Summary
Consider the following
Example
method, which already usethis
receiver in the method body.However, Dafny current does not support explicit pass
this
receiver as a parameter like the following and reject the code.Background and Motivation
Rustan mentioned there could be two potential use of it.
this: C?
.Proposed Feature
Explicit pass in
this
should not be rejected by the compiler and should behave the same as usethis
for field read and write directly.Alternatives
No response
The text was updated successfully, but these errors were encountered: