Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typemod: improve error message illegal shadowing of included items
- Loading branch information
Showing
8 changed files
with
98 additions
and
72 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
9 changes: 5 additions & 4 deletions
9
testsuite/tests/shadow_include/cannot_shadow_error.compilers.reference
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,5 +1,6 @@ | ||
File "cannot_shadow_error.ml", line 22, characters 2-19: | ||
Error: The type name t coming from this include cannot be shadowed as it is used later on by value print | ||
|
||
File "cannot_shadow_error.ml", line 23, characters 2-36: | ||
Shadowing of type name t | ||
Error: Illegal shadowing of included type t/1141 by t/1145 | ||
File "cannot_shadow_error.ml", line 22, characters 2-19: | ||
Type t/1141 came from this include | ||
File "cannot_shadow_error.ml", line 13, characters 2-43: | ||
The value print has no valid type if t/1141 is shadowed |
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
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