Debian Codegraph @

test-suite/bugs/bug_3657.v

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