| Issue 13: | Error extending interfaces | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Status:
Fixed
|