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 99: type parameter inline function error
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2011


 
Reported by lucadelt...@googlemail.com, Mar 14, 2011
inline function call<S>(f:Void->S) {
    var ret = f();
    return ret;
}
trace(call(function () trace("hello")));

What is the expected output? What do you see instead?
Whilst this seems like it 'should' be wrong, it does work with other haxe targets producing:

hello
null

but in hxcpp gives errors in c++ source about converting from Dynamic to null.

What version of the product are you using? On what operating system?
2,07,0

Mar 17, 2011
Project Member #1 gameh...@gmail.com
This seems to be working now.
Status: Fixed

Powered by Google Project Hosting