-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix usage tracking for shadowed values
by storing the usage information in a reference both in the value as well as the usage table, which now becomes a list. This way, the usage can be changed directly on the reference, which updates the usage list.
- Loading branch information
Showing
2 changed files
with
96 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
fun diff(x, y): x - y | ||
|
||
-- TODO this should be marked as used | ||
ignore(diff) | ||
let _ = | ||
let diff = 12 | ||
diff | ||
|