diff options
| author | Hugo Herbelin | 2014-11-15 22:13:28 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2014-11-16 13:31:49 +0100 |
| commit | 4c576db3ed40328caa37144eb228365f497293e5 (patch) | |
| tree | c83ff5a281e6918682510d33a28bf6412189adec /test-suite | |
| parent | 346df3d1336bfa01bc6e58ea08245b67d3127a00 (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.v | 9 |
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. |
