← Back to index
|
Original Bugzilla link
Bug 1353 – Can't use typeof() in base class list.
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-07-20T15:25:00Z
Last change time
2012-11-20T19:48:17Z
Keywords
pull, spec
Assigned to
yebblies
Creator
aziz.koeksal
Comments
Comment #0
by aziz.koeksal — 2007-07-20T15:25:51Z
class A { int a; } class B : typeof(new A) { int b; } According to the specs this is illegal, but why not allow it?
Comment #1
by yebblies — 2012-10-11T11:03:44Z
https://github.com/D-Programming-Language/dmd/pull/1177
Comment #2
by github-bugzilla — 2012-10-21T14:14:16Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/ad2b0c14ad5beecbd6e579738357fe622cb3bff6
Fix Issue 1353 - Can't use typeof() in base class list. Remove the restriction that a base class must being with an identifier (or a dot) and accept any type during passing. The semantic checks give better error messages anyway.
https://github.com/D-Programming-Language/dmd/commit/fb81572f58754d7a5a248bc46fb731e566fc2f83
Merge pull request #1177 from yebblies/issue1353 Enhancement 1353 - Can't use typeof() in base class list.
Comment #3
by bugzilla — 2012-10-21T14:15:38Z
Added for D2 only.
Comment #4
by k.hara.pg — 2012-11-20T19:48:17Z
*** Issue 9048 has been marked as a duplicate of this issue. ***