diff options
author | Nadrieril | 2020-02-04 19:04:27 +0000 |
---|---|---|
committer | Nadrieril | 2020-02-04 19:05:08 +0000 |
commit | 5e50ad90b01ef5f589515280668187b722bfcb5f (patch) | |
tree | 3864cb9b3a107aeef0813e18877e7eb8c1d32dbf /dhall/tests/type-errors/unit/ToMapEmptyInvalidAnnotation.txt | |
parent | eb9129312edf574948df777acb340189dc147724 (diff) |
Implement typechecking of toMap
Diffstat (limited to 'dhall/tests/type-errors/unit/ToMapEmptyInvalidAnnotation.txt')
-rw-r--r-- | dhall/tests/type-errors/unit/ToMapEmptyInvalidAnnotation.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dhall/tests/type-errors/unit/ToMapEmptyInvalidAnnotation.txt b/dhall/tests/type-errors/unit/ToMapEmptyInvalidAnnotation.txt new file mode 100644 index 0000000..c28073e --- /dev/null +++ b/dhall/tests/type-errors/unit/ToMapEmptyInvalidAnnotation.txt @@ -0,0 +1,7 @@ +Type error: error: The type of `toMap x` must be of the form `List { mapKey : Text, mapValue : T }` + --> <current file>:2:0 + | +1 | -- The mapKey must be Text +2 | toMap {=} : List { mapKey : Bool, mapValue : Text } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The type of `toMap x` must be of the form `List { mapKey : Text, mapValue : T }` + | |