Closed gene-pavlovsky closed 6 years ago
Flow:
@context() { test = Test.test(); }
Code:
class Test { public static function test():Void->String return function () return "test"; }
Results in a compile error: Test.flow:3: characters 8-60 : Void -> String should be String
Test.flow:3: characters 8-60 : Void -> String should be String
Workaround: Test: public static function test():{value: Void->String} Flow: testObj = Test.test(); test = testObj.value;
public static function test():{value: Void->String}
testObj = Test.test(); test = testObj.value;
Flow:
Code:
Results in a compile error:
Test.flow:3: characters 8-60 : Void -> String should be String
Workaround: Test:
public static function test():{value: Void->String}
Flow:testObj = Test.test(); test = testObj.value;