test-suite/bugs/bug_5012.v
raw| 1 | Class Foo := { foo : Set }. |
| 2 | |
| 3 | Axiom admit : forall {T}, T. |
| 4 | |
| 5 | Global Instance Foo0 : Foo |
| 6 | := {| foo := admit |}. |
| 7 | |
| 8 | Global Instance Foo1 : Foo |
| 9 | := { foo := admit }. |
| 10 | |
| 11 | Existing Class Foo. |
| 12 | |
| 13 | Global Instance Foo2 : Foo |
| 14 | := { foo := admit }. (* Error: Unbound method name foo of class Foo. *) |
| 15 | |
| 16 | Set Warnings "+already-existing-class". |
| 17 | Fail Existing Class Foo. |