[nem-en] Can inherited method be an inteface implementation?
Kamil Skalski
kamil.skalski at gmail.com
Wed Feb 7 18:56:54 CET 2007
Right, it looks like a bug.
2007/2/5, Vladimir Reshetnikov <v.reshetnikov at gmail.com>:
> class Base[T]
> {
> public Foo(x : T) : void {}
> }
>
> interface IFace
> {
> Foo(x : int) : void;
> }
>
> class Derived : Base[int], IFace { } /* error : unimplemented
> interface method IFace.Foo(x : int) : void (in Derived type) */
>
> Why this does not compile? In C#, it is OK.
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list