Debian Codegraph @

test-suite/bugs/bug_8791.v

raw
1 Class Inhabited (A : Type) : Type := populate { inhabitant : A }.
2
3 Definition A := 42.
4
5 #[export] Instance foo (A: Type): Inhabited (list A).
6 Check A.
7 Abort.
8
9 Fail #[export] Instance foo (A : nat) (A : Type) : Inhabited nat.