No overloading for math operators
Submitted by Eelco Visser on 19 March 2010 at 10:23
- lib/datetime.app:4/11: error: Wrong operand types for operator Mul: 1000 has type Int,x has type Long 1000 * x
- lib/datetime.app:4/4: error: The return statement in function seconds should have type Long
function seconds ( x : Long ) : Long
{
return 1000 * x;
}
Log in to post comments