aboutsummaryrefslogtreecommitdiff
path: root/test-suite/failure/Template.v
blob: 75b2a561694084ddf0f686ba7e9515687c16682f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(*
Module TestUnsetTemplateCheck.
  Unset Template Check.

  Section Foo.

    Context (A : Type).

    Definition cstr := nat : ltac:(let ty := type of A in exact ty).

    Inductive myind :=
    | cons : A -> myind.
  End Foo.

  (* Can only succeed if no template check is performed *)
  Check myind True : Prop.

  Print Assumptions myind.
  (*
  Axioms:
  myind is template polymorphic on all its universe parameters.
   *)
  About myind.
(*
myind : Type@{Top.60} -> Type@{Top.60}

myind is assumed template universe polymorphic on Top.60
Argument scope is [type_scope]
Expands to: Inductive Top.TestUnsetTemplateCheck.myind
*)
End TestUnsetTemplateCheck.
*)