scala/scala — pull request #1482 by paulp (2012-10-09 20:56:36+00:00)
Title: Fixes SI-4042, challenges with NumericRange's contains.

Cleans up some sketchy and inadequate casting in favor of
using a dummy implicit to overload contains. This way if
you're doing something reasonably sensible like

1L to 10L contains 3

It will be both fast and correct. And if you're doing
something sensible but less convenient for the implementor like

1L to 10L contains BigInt(3)

..then it will still be correct.