Issue 16: Need explicit "{ }" in functions.
Status:  Fixed
Owner:
Closed:  Jul 2010
Project Member Reported by gameh...@gmail.com, Apr 5, 2010
New  issue 64  by aboutwhat0: Plattform inconsistency
https://code.google.com/p/haxe/issues/detail?id=64
 
What steps will reproduce the problem?
 
Minimal Setup:
 
class Test {
 
    public static var add = function (x, y) return x + y;
 
    public static function main ()
    {
        trace(add(2, 2));
    }
}
 
works on neko and js, fails to compile for cpp, produces a runtime error on
flash.
 
cpp compilation error:
-------------------------------------------------------------
./src/Test.cpp(29) : error C2143: syntax error : missing ';' before 
'return'
./src/Test.cpp(29) : error C2334: unexpected token(s) preceding '{';
skipping apparent function body
 
Jul 25, 2010
Project Member #1 gameh...@gmail.com
Fixed on haxe SVN
Status: Fixed