| Issue 116: | interface, type param, inline | |
| 1 person starred this issue and may be notified of changes. | Back to list |
The following fails to be compiled using i686-apple-darwin10-gcc-4.2.1, error is ./src/Test.cpp: In static member function ‘static Void Test_obj::main()’: ./src/Test.cpp:49: error: ‘class hx::Object’ has no member named ‘get’ Tested with hxcpp r310, haxe r3777. interface Base<This> { public function set(v:Int):This; } class Extend implements Base<Extend> { public function new():Void {} public function get():Int { return 123; } public function set(v:Int):Extend { return this; } } class Test { inline static public function extend(v:Int) { return new Extend().set(v); } static function main():Void { trace(extend(123).get()); } }
Aug 10, 2011
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|