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 79: inline + field is not a member of hx::Object
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2011


 
Reported by michaelbaczynski@gmail.com, Oct 30, 2010
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
Fixed on svn
Status: Fixed

Powered by Google Project Hosting