[nem-bug] [Nemerle 0000548]: Using base.foo() to call method from
class higher in hierarchy than direct parent
feedback at nemerle.org
feedback at nemerle.org
Tue Nov 22 12:17:09 CET 2005
The following issue has been CONFIRMED.
======================================================================
<http://nemerle.org/bugs/view.php?id=548>
======================================================================
Reported By: nazgul
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 548
Category: Language Feature
Reproducibility: always
Severity: minor
Priority: normal
Status: confirmed
======================================================================
Date Submitted: 10-09-2005 21:05 CEST
Last Modified: 11-22-2005 12:17 CET
======================================================================
Summary: Using base.foo() to call method from class higher in
hierarchy than direct parent
Description:
class A {
public virtual foo () : void {
System.Console.WriteLine ("a");
}
}
class B : A{
public override foo () : void {
base.foo ();
System.Console.WriteLine ("b");
}
}
class C : B {
public override foo () : void {
(base : A).foo ();
System.Console.WriteLine ("c");
}
}
def x = C();
x.foo();
======================================================================
----------------------------------------------------------------------
malekith - 11-22-05 12:17
----------------------------------------------------------------------
I guess we might support this, though this is clearly a language feature,
not a bug.
Issue History
Date Modified Username Field Change
======================================================================
10-09-05 21:05 nazgul New Issue
11-22-05 12:17 malekith Note Added: 0001036
11-22-05 12:17 malekith Status new => confirmed
11-22-05 12:17 malekith Category Compiler => Language
Feature
11-22-05 12:17 malekith Description Updated
11-22-05 12:17 malekith Additional Information Updated
======================================================================
More information about the bugs
mailing list