| Issue 79: | inline + field is not a member of hx::Object | |
| 1 person starred this issue and may be notified of changes. | Back to list |
compilation fails with (using latest haXe+hxcpp from svn):
./Main.cpp(35) : error C2039: 'x' : is not a member of 'hx::Object'
C:\Motion-Twin\haxe\lib\hxcpp\2,06,1\include\hx/Object.h(53) : see declaration of 'hx::Object'
only compiles if inline keyword is removed from A#get method.
hxml:
-main Main
-cpp bin
class Main
{
static function main():Void
{
var x = new A<B>().get().x;
}
}
class A<T>
{
var _a:Array<T>;
public function new() {}
inline public function get():T { return _a[0]; }
}
class B
{
public var x:Int;
public function new() {}
}
Jan 17, 2011
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|