-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix minor bug with exception replication
An exception replication `exception <vid> = <longvid>` requires that `<longvid>` have exception status, but MLton was allowing an identifier with either (non-exn) constructor or exception status: exception E_NONE = NONE exception E_SOME = SOME fun f x = case x of E_NONE => () | E_SOME () => () This program would compile without errors. (Curiously, `E_NONE` and `E_SOME` were added to the environment with exception status, but this seems to have little effect on elaboration.) Now, an exception replication properly checks that `<longvid>` has exception status: Error: z.sml 1.20-1.23. Undefined exception: NONE. Error: z.sml 2.20-2.23. Undefined exception: SOME. Error: z.sml 7.7-7.12. Undefined constructor: E_SOME.
- Loading branch information
1 parent
77d5044
commit 1c89c42
Showing
3 changed files
with
19 additions
and
1 deletion.
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