| | @@ -3408,6 +3408,9 @@ |
| 3408 | 3408 | t := try parseType(); |
| 3409 | 3409 | if (t # Sym.tError) and not ((t^.form = Sym.fArray) or (t^.form = Sym.fSlice) |
| 3410 | 3410 | or ((t^.form = Sym.fRecord) and not t^.tuple) or (t^.form = Sym.fVariant)) then |
| 3411 | + if t^.form = Sym.fSet then |
| 3412 | + return Scan.markAt(Scan.spanFrom(start), "a set constant takes its type from its names: write it without one"); |
| 3413 | + end; |
| 3411 | 3414 | return Scan.markAt(Scan.spanFrom(start), "only an ERROR, an array, a record or a variant constant has a type"); |
| 3412 | 3415 | end; |
| 3413 | 3416 | end; |