blob: 49c334e6201f7b3c3177dad28481ec53470e9b8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
(* Check typing of replaced objects in change - even though the failure
was already a proper error message (but with a helpless content) *)
Class foo {A} {a : A} := { bar := a; baz : bar = bar }.
Arguments bar {_} _ {_}.
Instance: forall A a, @foo A a.
intros; constructor.
abstract reflexivity.
Defined.
Goal @bar _ Set _ = (@bar _ (fun _ : Set => Set) _) nat.
Proof.
Fail change (bar (fun _ : Set => Set)) with (bar Set).
Abort.
|