[Issue 9952] New: regression(HEAD): Attribute inference for virtual functions breaks subclasses
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 17 23:46:29 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9952
Summary: regression(HEAD): Attribute inference for virtual
functions breaks subclasses
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2013-04-17 23:46:28 PDT ---
Compiles with 2.062, error in git head:
import std.stdio;
class C(T){
T foo(){ return 2; }
}
class D : C!int{
override int foo(){ writeln(super.foo()); return 3; } // error
}
void main(){ }
This was presumably introduced by the fix for issue 7511.
(It had already been pointed out there that virtual functions shouldn't have
their attributes inferred.)
--
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