Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for concise error on sinking last statement.
If the last statement in a file used to need sinking, and doing so threw an exception, we'd spit out an epic low-level backtrace rather than a nice high-level one. Fix that by making non-EVAL and non-REPL stuff we compile put the last statement in sink context in the code we generate rather than having MAIN do the sinking. Also means a trailing 0; in a file now warns.
- Loading branch information
Showing
3 changed files
with
10 additions
and
5 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