3589 – BaseClassList and InterfaceClasses rules are incorrect, missing ','

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3589 - BaseClassList and InterfaceClasses rules are incorrect, missing ','
Summary: BaseClassList and InterfaceClasses rules are incorrect, missing ','
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: spec
Depends on:
Blocks:
Reported: 2009年12月07日 07:36 UTC by Jerry Quinn
Modified: 2015年06月09日 01:27 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Jerry Quinn 2009年12月07日 07:36:03 UTC
The existing definitions are
BaseClassList:
	: SuperClass
	: SuperClass InterfaceClasses
	: InterfaceClass
InterfaceClasses:
	InterfaceClass
	InterfaceClass InterfaceClasses
However, the rest of the docs and the compiler believe that the following is correct:
class A {}
interface B {}
class C : A, B {}
So, the rules need to represent the commas:
BaseClassList:
	: SuperClass
	: SuperClass , InterfaceClasses
	: InterfaceClass
InterfaceClasses:
	InterfaceClass
	InterfaceClass , InterfaceClasses
Comment 1 Leandro Lucarella 2009年12月14日 06:29:23 UTC
http://www.dsource.org/projects/phobos/changeset/1377 
Comment 2 Walter Bright 2009年12月31日 11:14:01 UTC
Fixed dmd 1.054 and 2.038


AltStyle によって変換されたページ (->オリジナル) /