| 1 |
(* Take the type constraint on Record into account *) |
| 2 |
|
| 3 |
Definition Type1 := Type. |
| 4 |
Fail Record R : Type1 := { p:Type1 }. (* was accepted before trunk revision 11619 *) |
| 5 |
|
| 6 |
(* |
| 7 |
Remarks: |
| 8 |
|
| 9 |
- The behaviour was inconsistent with the one of Inductive, e.g. |
| 10 |
|
| 11 |
Inductive R : Type1 := Build_R : Type1 -> R. |
| 12 |
|
| 13 |
was correctly refused. |
| 14 |
|
| 15 |
- CoRN makes some use of the following configuration: |
| 16 |
|
| 17 |
Definition CProp := Type. |
| 18 |
Record R : CProp := { ... }. |
| 19 |
|
| 20 |
CoRN may have to change the CProp definition into a notation if the |
| 21 |
preservation of the former semantics of Record type constraints |
| 22 |
turns to be required. |
| 23 |
*) |