IDE does not check that function returns a value
function below should generate an error message stating that the function does not return a value
Submitted by Eelco Visser on 6 November 2010 at 11:20
function factorial(n : Num) : Num {
var x = 1;
while(n > 0) {
x = x * n;
n = n - 1;
}
// return x;
}