Real protocol and floating point literals

Because Real would also support decimal floating-point types.

It sounds like you want <F: Real & BinaryFloatingPoint> for your constraint. Longer-term, floating-point literals are due for a reworking that would resolve this problem.

7 Likes