-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #52 by raising an inference error when types arent compat
note: I ran into an issue where deferred inference assumes that you are inferring as an expression, which isn't always true for a rescue statement so I put in a ivar to cache the initial expression value--I feel like this should be done in a more general way, but my main goal was to fix the bug. I also noticed that there is a lot of variation in how the infer(typer, exp) methods determined whether they are cached or not. It' be nice to clean that up. I might do some of that next weekend.
- Loading branch information
1 parent
81be877
commit 677e4aa
Showing
3 changed files
with
37 additions
and
13 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
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 |
---|---|---|
|
@@ -149,5 +149,4 @@ def test_empty_rescues | |
nil | ||
EOF | ||
end | ||
|
||
end |