summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadrieril2020-02-20 18:54:58 +0000
committerNadrieril2020-02-20 18:54:58 +0000
commit0e07c9cd012efaeae7e1c50a3499a13aef4d2b61 (patch)
tree03ccb36bbb8c4b5a4c3da203b82b593cce2b7699
parent86508a3ad59a0bfc1e24448d0a0126b1a1c645e1 (diff)
Disallow Natural literals with leading zeros
-rw-r--r--README.md1
m---------dhall-lang0
-rw-r--r--dhall/tests/parser/failure/unit/NaturalLitLeadingZero.txt6
3 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index a46859e..34878f4 100644
--- a/README.md
+++ b/README.md
@@ -161,6 +161,7 @@ same name as the corresponding test.
[???]
+- Disallow Natural literals with leading zeros
- Add support for duplicate record fields
- Update to supporting dhall v13.0.0
diff --git a/dhall-lang b/dhall-lang
-Subproject 3301f2e2a408d9e3953185c51c1a07c668db47b
+Subproject a1f2dc019907ec001f28abbd05ca397bddb0975
diff --git a/dhall/tests/parser/failure/unit/NaturalLitLeadingZero.txt b/dhall/tests/parser/failure/unit/NaturalLitLeadingZero.txt
new file mode 100644
index 0000000..07d9b5c
--- /dev/null
+++ b/dhall/tests/parser/failure/unit/NaturalLitLeadingZero.txt
@@ -0,0 +1,6 @@
+ --> 1:2
+ |
+1 | 042␊
+ | ^---
+ |
+ = expected EOI, import_alt, bool_or, natural_plus, text_append, list_append, bool_and, natural_times, bool_eq, bool_ne, combine, combine_types, equivalent, prefer, or arrow