-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
retain the non-matching value in a PatternMismatch error
- Loading branch information
Alex Suraci
committed
May 19, 2011
1 parent
7a41fd6
commit 469cba6
Showing
2 changed files
with
16 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
MethodFail message := | ||
("method '" + @method-name to-s + "' did not understand " + | ||
"its arguments (non-exhaustive patterns)") | ||
"method '" + @method-name to-s + "' did not understand " + | ||
"its arguments (non-exhaustive patterns)" | ||
|
||
PatternMismatch message := | ||
"irrefutable pattern failed for " + @pattern to-s | ||
"pattern of type `" + @pattern class name split("::") last + | ||
"' did not match value `" + @value inspect + "'" |
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