methods/contains.vala \
methods/iterator.vala \
methods/prepostconditions.vala \
+ methods/same-name.vala \
methods/symbolresolution.vala \
methods/bug595538.vala \
methods/bug596726.vala \
semantic/method-extern-abstract.test \
semantic/method-extern-body.test \
semantic/method-extern-virtual.test \
+ semantic/method-interface-already-found.test \
+ semantic/method-interface-not-found.test \
semantic/method-main-async.test \
semantic/method-main-inline.test \
semantic/method-main-throws.test \
--- /dev/null
+interface IFoo {
+ public abstract bool foo ();
+}
+
+class Foo : IFoo {
+ public bool IFoo.foo () {
+ return true;
+ }
+
+ public int foo () {
+ return 42;
+ }
+}
+
+void main () {
+ var foo = new Foo ();
+ assert (((IFoo) foo).foo ());
+ assert (foo.foo () == 42);
+}