digitalmars.D.bugs - [Issue 4698] New: Can't add constraints to templated class that uses inheritance
- d-bugmail puremagic.com (24/24) Aug 20 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4698
- d-bugmail puremagic.com (16/16) Aug 20 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4698
- d-bugmail puremagic.com (11/11) Aug 20 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4698
http://d.puremagic.com/issues/show_bug.cgi?id=4698
Summary: Can't add constraints to templated class that uses
inheritance
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: dsimcha yahoo.com
import std.range;
class Foo {}
class Bar(T) : Foo if(isInputRange!T) {}
test9.d(4): members expected
test9.d(4): { } expected following aggregate declaration
test9.d(4): Declaration expected, not 'if'
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4698
Kosmonaut <Kosmonaut tempinbox.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Kosmonaut tempinbox.com
---
This works:
---
class Foo {}
class Bar(T) if(isInputRange!T) : Foo {}
---
I'm pretty sure that someone already filled a bug about this issue. Couldn't
find it though.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4698
Kosmonaut <Kosmonaut tempinbox.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
---
*** This issue has been marked as a duplicate of issue 3673 ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010









d-bugmail puremagic.com 