summaryrefslogtreecommitdiff
path: root/dhall/src/errors/DuplicateAlternative.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dhall/src/errors/DuplicateAlternative.txt')
-rw-r--r--dhall/src/errors/DuplicateAlternative.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/dhall/src/errors/DuplicateAlternative.txt b/dhall/src/errors/DuplicateAlternative.txt
new file mode 100644
index 0000000..077f8aa
--- /dev/null
+++ b/dhall/src/errors/DuplicateAlternative.txt
@@ -0,0 +1,18 @@
+Explanation: Unions may not have two alternatives that share the same name
+
+For example, the following expressions are $_NOT valid:
+
+
+ ┌─────────────────────────────┐
+ │ < foo = True | foo : Text > │ Invalid: ❰foo❱ appears twice
+ └─────────────────────────────┘
+
+
+ ┌───────────────────────────────────────┐
+ │ < foo = 1 | bar : Bool | bar : Text > │ Invalid: ❰bar❱ appears twice
+ └───────────────────────────────────────┘
+
+
+You have more than one alternative named:
+
+↳ $txt0