diff options
| author | herbelin | 2012-11-17 03:09:23 +0000 |
|---|---|---|
| committer | herbelin | 2012-11-17 03:09:23 +0000 |
| commit | 35846ec22445e14cb044ef3beb62f5c559d94752 (patch) | |
| tree | 283e8cc0a05b3f1722dadaabc900341ee63499ed /test-suite | |
| parent | beca7a2c11d6521bd9eec7bb0eb5d77a345f99ef (diff) | |
Taking into account the type of a definition (if it exists), and the
type in "cast" to activate the temporary interpretation scope.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15978 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/Scopes.v | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/success/Scopes.v b/test-suite/success/Scopes.v index 997fedd38f..ab40a7c48f 100644 --- a/test-suite/success/Scopes.v +++ b/test-suite/success/Scopes.v @@ -13,3 +13,11 @@ Record B := { f :> Z -> Z }. Variable a:B. Arguments Scope a [Z_scope]. Check a 0. + +(* Check that casts activate scopes if ever possible *) + +Inductive U := A. +Bind Scope u with U. +Notation "'ε'" := A : u. +Definition c := ε : U. +Check ε : U |
