diff options
| author | Emilio Jesus Gallego Arias | 2019-01-08 01:51:09 +0100 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-01-08 01:51:09 +0100 |
| commit | d6fe12b3ce8299a161c59ff8ed0657531af70329 (patch) | |
| tree | fc82d7c1cae50a2a1a8a901f579709de0f9c2b02 /test-suite/success | |
| parent | cd0b6e930d8753f68f5ed84ddcf00be09cd38990 (diff) | |
| parent | 9d0c0a903aa8ed6514dbc363ff4571d7cad70687 (diff) | |
Merge PR #9292: Fixing some wrong scopes of variables in the interpretation of the "in" clause of a "match"
Diffstat (limited to 'test-suite/success')
| -rw-r--r-- | test-suite/success/Cases.v | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/success/Cases.v b/test-suite/success/Cases.v index 52fe98ac07..232ac17cbf 100644 --- a/test-suite/success/Cases.v +++ b/test-suite/success/Cases.v @@ -1873,3 +1873,12 @@ Check match niln in listn O return O=O with niln => eq_refl end. (* (was failing up to May 2017) *) Check fun x => match x with (y,z) as t as w => (y+z,t) = (0,w) end. + +(* A test about binding variables of "in" clause of "match" *) +(* (was failing from 8.5 to Dec 2018) *) + +Check match O in nat return nat with O => O | _ => O end. + +(* Checking that aliases are substituted in the correct order *) + +Check match eq_refl (1,0) in _ = (y as z, y' as z) return z = z with eq_refl => eq_refl end : 0=0. |
