Debian Codegraph @

test-suite/bugs/bug_6774.v

raw
1 (* Was an anomaly with ill-typed template polymorphism *)
2 Definition huh (b:bool) := if b then Set else Prop.
3 Definition lol b: huh b :=
4 if b return huh b then nat else True.
5 Goal (lol true) * unit.
6 Fail generalize true. (* should fail with error, not anomaly *)
7 Abort.