-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
dhall/tests/type-errors/unit/CompletionMissingRequiredField.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Type error: error: annot mismatch: (Example.default ⫽ {=} : { id : Optional Natural }) : { id : Optional Natural, name : Text } | ||
--> <current file>:1:4 | ||
| | ||
... | ||
6 | in Example::{=} | ||
| ^^^^^^^^^^^^ annot mismatch: (Example.default ⫽ {=} : { id : Optional Natural }) : { id : Optional Natural, name : Text } | ||
| |
7 changes: 7 additions & 0 deletions
7
dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Type error: error: annot mismatch: (Example.default ⫽ {=} : { id : Optional Natural, name : Bool }) : { id : Optional Natural, name : Text } | ||
--> <current file>:1:4 | ||
| | ||
... | ||
6 | in Example::{=} | ||
| ^^^^^^^^^^^^ annot mismatch: (Example.default ⫽ {=} : { id : Optional Natural, name : Bool }) : { id : Optional Natural, name : Text } | ||
| |
7 changes: 7 additions & 0 deletions
7
dhall/tests/type-errors/unit/CompletionWithWrongFieldName.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Type error: error: annot mismatch: (Example.default ⫽ { nam = "John Doe" } : { id : Optional Natural, nam : Text, name : Text }) : { id : Optional Natural, name : Text } | ||
--> <current file>:1:4 | ||
| | ||
... | ||
6 | in Example::{ nam = "John Doe" } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ annot mismatch: (Example.default ⫽ { nam = "John Doe" } : { id : Optional Natural, nam : Text, name : Text }) : { id : Optional Natural, name : Text } | ||
| |
7 changes: 7 additions & 0 deletions
7
dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Type error: error: annot mismatch: (Example.default ⫽ { name = True } : { id : Optional Natural, name : Bool }) : { id : Optional Natural, name : Text } | ||
--> <current file>:1:4 | ||
| | ||
... | ||
6 | in Example::{ name = True } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ annot mismatch: (Example.default ⫽ { name = True } : { id : Optional Natural, name : Bool }) : { id : Optional Natural, name : Text } | ||
| |
6 changes: 6 additions & 0 deletions
6
dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Type error: error: ProjectionWrongType | ||
--> <current file>:1:0 | ||
| | ||
1 | { y = {=} }.( {y : Natural} ) | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ProjectionWrongType | ||
| |
6 changes: 6 additions & 0 deletions
6
dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Type error: error: ProjectionMissingEntry | ||
--> <current file>:1:0 | ||
| | ||
1 | { y = {=} }.( {x : Natural} ) | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ProjectionMissingEntry | ||
| |