You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then get a reference to the inner field, and move the outer resource:
// Get a reference to the inner resourcevarbarRef = &foo.bar as &Bar
// Move the resourcevarfoo2 <- foo
// Access the moved resource through the reference
barRef.id // <-- This should panic, but currently doesn't
Expected Behavior
See above
Steps To Reproduce
See above
Environment
- Cadence version: Stable Cadence (not applicable for the master branch or any released versions)
The text was updated successfully, but these errors were encountered:
The reference tracking is there in both branches, but the purpose of the tracking and how it is implemented is different in the two branches. e.g: in master branch, the tracking is used to keep the reference valid, whereas, in stable-cadence, tracking is used to invalidate the reference. This change was done in #1999.
This reported problem only exists in the stable cadence branch. More like a bug in #1999.
Current Behavior
Imagine a nested resource like:
Then get a reference to the inner field, and move the outer resource:
Expected Behavior
See above
Steps To Reproduce
See above
Environment
- Cadence version: Stable Cadence (not applicable for the master branch or any released versions)
The text was updated successfully, but these errors were encountered: