April 09, 2007 [Issue 1114] New: Indexed tuple cannot be used in inheritance declaration | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1114 Summary: Indexed tuple cannot be used in inheritance declaration Product: D Version: 1.010 Platform: PC OS/Version: Linux Status: NEW Keywords: rejects-valid Severity: minor Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: reiner.pope@gmail.com You can't use [ or ] in when declaring a base class: template Tuple(T...) { alias T Tuple; } class Foo {} alias Tuple!(Foo) MyTup; class Bar : MyTup[0] // Fails here {} inherittuple.d(11): members expected inherittuple.d(11): { } expected following aggregate declaration inherittuple.d(11): Declaration expected, not '[' It's not too big an issue, since you can replace it with alias MyTup[0] TheBaseClass; class Bar : TheBaseClass {} -- |
April 27, 2007 [Issue 1114] Indexed tuple cannot be used in inheritance declaration | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1114 thomas-dloop@kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Linux |All ------- Comment #1 from thomas-dloop@kuehne.cn 2007-04-27 12:37 ------- Added to DStress as http://dstress.kuehne.cn/run/tuple_24_A.d http://dstress.kuehne.cn/run/tuple_24_B.d -- |
Copyright © 1999-2021 by the D Language Foundation