float is missing in type definition using +, * or -
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=712
Reported by Fredrik Noring, Roxen Internet Software noring@roxen.com
int|float sqr(int|float x)
{
return x * x;
}
float f(float x)
{
return sqr(x) + sqr(x);
} // ^-- can be e.g. +, * or -...
-:8:Wrong return type.
-:8:Expected: float
-:8:Got : int
^^^ should be int|float