Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from Nadrieril/fix-228
- Loading branch information
Showing
6 changed files
with
43 additions
and
19 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
13 changes: 12 additions & 1 deletion
13
dhall/tests/type-inference/failure/unit/RecordLitDuplicateFieldsAbstract.txt
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 +1,12 @@ | ||
Type error: error: RecordTypeMergeRequiresRecordType | ||
Type error: error: DuplicateFieldName | ||
--> <current file>:6:47 | ||
| | ||
1 | {- This test illustrates that duplicate fields need not be literals in order | ||
2 | to be properly normalized. One or both of the duplicate fields can be | ||
3 | abstract because field duplication delegates its behavior to the `∧` | ||
4 | operator | ||
... | ||
12 | -} | ||
13 | λ(r : { y : Natural }) → { x = { y = 1 }, x = r } | ||
| ^ DuplicateFieldName | ||
| |
8 changes: 7 additions & 1 deletion
8
dhall/tests/type-inference/failure/unit/RecordLitDuplicateFieldsCollidingRecords.txt
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 +1,7 @@ | ||
Type error: error: RecordTypeMergeRequiresRecordType | ||
Type error: error: DuplicateFieldName | ||
--> <current file>:1:22 | ||
| | ||
... | ||
8 | { x = { y = 0 }, x = { y = 0 } } | ||
| ^^^^^^^^^ DuplicateFieldName | ||
| |
8 changes: 7 additions & 1 deletion
8
dhall/tests/type-inference/failure/unit/RecordLitDuplicateFieldsNotRecords.txt
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 +1,7 @@ | ||
Type error: error: RecordTypeMergeRequiresRecordType | ||
Type error: error: DuplicateFieldName | ||
--> <current file>:1:14 | ||
| | ||
... | ||
7 | { x = 0, x = 0 } | ||
| ^ DuplicateFieldName | ||
| |