Closed evincarofautumn closed 11 years ago
I think the issue is now different. Kitten now supports overloading, meaning +
and +.
are the same operator. The compiler currently gives you error message such as:
1 2.0 + // .ktn
...:7:(-1): type error: unable to resolve overload
I would guess a better message would be:
type error: unable to resolve overload of '+'
candidates are:
Int Int -> Int
Float Float -> Float
but stack contained: Float Int
Should this issue be closed or reworded?
Yup, the times have changed. Your suggestion was better.
x.0
ifx
is a literalint
where afloat
was expected.+.
inx y +
ifx
andy
are bothfloat
.