http://d.puremagic.com/issues/show_bug.cgi?id=5171
Jesse Phillips changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID |
Summary|@disable doesn't work on|Prevent compiling of class
|opEquals functions |when @disable is used on an
||overriding function
Severity|normal |enhancement
--- Comment #4 from Jesse Phillips 2010-11-09
11:10:36 PST ---
class A {
void hello() {
}
}
class B : A {
@disable override void hello() {
}
}
void main() {
auto a = new A();
A b = new B();
b.hello();
}
The compiler should not compile the class saying something to the effect of:
Can not disable method hello in base class A from B.
Or another suggestion "Cannot @disable overriding function hello in B"
Note that I think the code below should still compile:
class A {
@disable void hello() {
}
}
class B : A {
override void hello() {
}
}
void main() {
auto a = new A();
B b = new B();
b.hello();
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---