test-suite/bugs/bug_12534.v
raw| 1 | Record C {PROP: Prop} (P : PROP) : Type := { c : unit}. |
| 2 | Check fun '{|c:=x|} => tt. (* Fine *) |
| 3 | Arguments Build_C {_ _} _. |
| 4 | Check fun '(Build_C _) => tt. (* Works. Note: just 1 argument! *) |
| 5 | Check fun '{|c:=x|} => tt. |
| 6 | (* Error: The constructor @Build_C (in type @C) expects 1 argument. *) |
| 7 | |
| 8 | Set Asymmetric Patterns. |
| 9 | Check fun '{|c:=x|} => tt. |