Bug 16130 – Disallow class template constraints from appearing after BaseClassList

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-06-06T01:14:29Z
Last change time
2024-12-13T18:48:22Z
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#19141 →

Comments

Comment #0 by bugzilla — 2016-06-06T01:14:29Z
Currently, a Constraint is allowed both before and after the BaseClassList by the grammar: http://dlang.org/spec/template.html#ClassTemplateDeclaration http://dlang.org/spec/template.html#InterfaceTemplateDeclaration There is no purpose to the redundancy, and the 'after' syntax doesn't make much sense. The grammar rules: class Identifier TemplateParameters BaseClassListopt Constraintopt AggregateBody interface Identifier TemplateParameters BaseInterfaceList Constraint AggregateBody should be removed. I don't know how they ever got there in the first place.
Comment #1 by robert.schadek — 2024-12-13T18:48:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19141 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB