'Return statement missing in function test'-check does not find executions paths that never return
The
Return statement missing in function test
-check indicates that there is notreturn
statement in the function, but a function like this does not generate any editor errors (but the building fails nonetheless):Submitted by D. Pelsmaeker on 23 March 2012 at 17:11function test() : String { if (false) { return null; } else { } }
Log in to post comments