[Issue 4698] New: Can't add constraints to templated class that uses inheritance
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 20 17:48:37 PDT 2010
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 at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2010-08-20 17:48:36 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list