blob: 2ab2114aa2de7e37d68a1695e30f1ef5ba66e02f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
interface IFoo : Object {
public virtual void foo (int i) {
assert (i == 42);
}
}
class Bar : Object, IFoo {
public new string foo () {
return "bar";
}
}
void main () {
var bar = new Bar ();
assert (bar.foo () == "bar");
((IFoo) bar).foo (42);
}
|