aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorHugo Herbelin2014-11-15 22:13:28 +0100
committerHugo Herbelin2014-11-16 13:31:49 +0100
commit4c576db3ed40328caa37144eb228365f497293e5 (patch)
treec83ff5a281e6918682510d33a28bf6412189adec /test-suite
parent346df3d1336bfa01bc6e58ea08245b67d3127a00 (diff)
Fixing side bug in db37c9f3f32ae7 delaying interpretation of the
right-hand side of a "change with": the rhs lives in the toplevel environment.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/change.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/success/change.v b/test-suite/success/change.v
index cd2dd77f9e..1f0b7d38a9 100644
--- a/test-suite/success/change.v
+++ b/test-suite/success/change.v
@@ -50,3 +50,12 @@ Abort.
Goal nat = nat :> Set.
Fail change nat with (@id Type nat). (* would otherwise be ill-typed *)
Abort.
+
+(* Check typing env for rhs is the correct one *)
+
+Goal forall n, let x := n in id (fun n => n + x) 0 = 0.
+intros.
+unfold x.
+(* check that n in 0+n is not interpreted as the n from "fun n" *)
+change n with (0+n).
+Abort.