From 81a3f81c046697ff011c93929c75c29f4cd39f2f Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Sun, 15 Nov 2020 21:08:11 +0100 Subject: Intern application arguments in left-to-right order This makes it so that we have an application `h a b` with both `a` and `b` unbound, `a` is the one that is reported (parent commit with my current compiler setup reports `b` first, and the code does not define which it should be). Ideally we would report both but that requires more code. --- test-suite/output/UnboundRef.out | 3 +++ test-suite/output/UnboundRef.v | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 test-suite/output/UnboundRef.out create mode 100644 test-suite/output/UnboundRef.v (limited to 'test-suite') diff --git a/test-suite/output/UnboundRef.out b/test-suite/output/UnboundRef.out new file mode 100644 index 0000000000..a574e97e0f --- /dev/null +++ b/test-suite/output/UnboundRef.out @@ -0,0 +1,3 @@ +File "stdin", line 1, characters 11-12: +Error: The reference a was not found in the current environment. + diff --git a/test-suite/output/UnboundRef.v b/test-suite/output/UnboundRef.v new file mode 100644 index 0000000000..fd08ae0c5c --- /dev/null +++ b/test-suite/output/UnboundRef.v @@ -0,0 +1,2 @@ +Check Prop a b. +(* Prop is because we need a real head for the application *) -- cgit v1.2.3