Issue 13: Error extending interfaces
Status:  Fixed
Owner:
Closed:  Jul 2010
Project Member Reported by gameh...@gmail.com, Apr 5, 2010
Extending interface A with interface B causes an error:
 
InterfaceB.cpp
./src/InterfaceB.cpp(10) : error C2509: '__ToInterface' : member function
not declared in 'InterfaceB_obj'
        F:\data\milkman\haxe\games\cpptester\bin\include\InterfaceB.h(11) :
see declaration of 'InterfaceB_obj'
 
 
(haxe code):
 
class Main
{
 
    static function main()
    {
        var c:Concrete=new Concrete();
    }
 
}
...
 
interface InterfaceA
{
    function foo():Void;
}
 
...
 
interface InterfaceB implements InterfaceA
{
    function bar():Void;
}
 
...
 
/** Concrete */
class Concrete implements InterfaceB
{
    public function new()
    {
 
    }
 
    public function foo():Void
    {
 
    }
 
    public function bar():Void
    {
 
    }
}
 
Thanks,
 
Alex
Jul 25, 2010
Project Member #1 gameh...@gmail.com
Fixed on haxe SVN
Status: Fixed