summaryrefslogtreecommitdiff
path: root/dhall
diff options
context:
space:
mode:
Diffstat (limited to 'dhall')
-rw-r--r--dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt7
-rw-r--r--dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt7
-rw-r--r--dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt7
-rw-r--r--dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt7
-rw-r--r--dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt6
-rw-r--r--dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt6
6 files changed, 40 insertions, 0 deletions
diff --git a/dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt b/dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt
new file mode 100644
index 0000000..d0a9a01
--- /dev/null
+++ b/dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt
@@ -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 }
+ |
diff --git a/dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt b/dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt
new file mode 100644
index 0000000..d4639e9
--- /dev/null
+++ b/dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt
@@ -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 }
+ |
diff --git a/dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt b/dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt
new file mode 100644
index 0000000..0839742
--- /dev/null
+++ b/dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt
@@ -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 }
+ |
diff --git a/dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt b/dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt
new file mode 100644
index 0000000..7edef95
--- /dev/null
+++ b/dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt
@@ -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 }
+ |
diff --git a/dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt b/dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt
new file mode 100644
index 0000000..d624075
--- /dev/null
+++ b/dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt
@@ -0,0 +1,6 @@
+Type error: error: ProjectionWrongType
+ --> <current file>:1:0
+ |
+1 | { y = {=} }.( {y : Natural} )
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ProjectionWrongType
+ |
diff --git a/dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt b/dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt
new file mode 100644
index 0000000..c22c2c4
--- /dev/null
+++ b/dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt
@@ -0,0 +1,6 @@
+Type error: error: ProjectionMissingEntry
+ --> <current file>:1:0
+ |
+1 | { y = {=} }.( {x : Natural} )
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ProjectionMissingEntry
+ |