From 941598795d5210d0d60e3cc2088c31499acdc943 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Fri, 17 Jun 2022 11:38:50 +0200 Subject: [PATCH] Syntax: add quote_in_identifier test --- tests/pass.rs | 5 +++++ tests/pass/quote_in_identifier.ncl | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 tests/pass/quote_in_identifier.ncl diff --git a/tests/pass.rs b/tests/pass.rs index 91b51ec9ad..4d0cfb66fc 100644 --- a/tests/pass.rs +++ b/tests/pass.rs @@ -122,3 +122,8 @@ fn overriding() { fn recursive_let() { check_file("recursive_let.ncl"); } + +#[test] +fn quote_in_indentifier() { + check_file("quote_in_identifier.ncl") +} diff --git a/tests/pass/quote_in_identifier.ncl b/tests/pass/quote_in_identifier.ncl new file mode 100644 index 0000000000..241cc7ae20 --- /dev/null +++ b/tests/pass/quote_in_identifier.ncl @@ -0,0 +1,3 @@ +let Assert = fun l x => x || %blame% l in + +let this-isn't-invalid = true in this-isn't-invalid | Assert