From 0e07c9cd012efaeae7e1c50a3499a13aef4d2b61 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 20 Feb 2020 18:54:58 +0000 Subject: Disallow Natural literals with leading zeros --- README.md | 1 + dhall-lang | 2 +- dhall/tests/parser/failure/unit/NaturalLitLeadingZero.txt | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 dhall/tests/parser/failure/unit/NaturalLitLeadingZero.txt 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 index 3301f2e..a1f2dc0 160000 --- a/dhall-lang +++ b/dhall-lang @@ -1 +1 @@ -Subproject commit 3301f2e2a408d9e3953185c51c1a07c668db47b7 +Subproject commit a1f2dc019907ec001f28abbd05ca397bddb0975d 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 -- cgit v1.2.3