Closed tpolecat closed 8 years ago
Related discussion on the ML, Rex Kerr said don't ask me to write 0.0
everywhere. Apparently, it matters if you do it a lot.
Well it would need to be hidden behind a flag of course, so Rex is safe.
To resurrect this issue, please rework it as an issue/PR against Lightbend Scala (ie. scala/scala).
The
-Ywarn-numeric-widen
flag mostly warns for widening of non-constant expressions; for example:However this warning doesn't apply to [foldable] constants:
I don't know if this is related to this delightful phenomenon, but if so I would be happy to see this give me the
List[AnyVal]
I expected: