From 35846ec22445e14cb044ef3beb62f5c559d94752 Mon Sep 17 00:00:00 2001 From: herbelin Date: Sat, 17 Nov 2012 03:09:23 +0000 Subject: 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 --- test-suite/success/Scopes.v | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test-suite') 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 -- cgit v1.2.3