My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 13: Error extending interfaces
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  gameh...@gmail.com
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

Powered by Google Project Hosting