summaryrefslogtreecommitdiff
path: root/test/files/neg/t6889.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-10206 tighten fix for SI-6889Adriaan Moors2017-02-231-2/+5
| | | | | There are more supertypes of `AnyRef` than you might think: `?{def clone: ?}` is one example...
* SI-6899, prohibit dangerous, useless implicit conversions.Paul Phillips2013-06-041-0/+7
Increase eligibility requirements for implicit conversions, such that T => U is ineligible if T <: Null <or> AnyRef <: U This has the salutary effect of allowing us to ditch 16 ridiculous implicits from Predef, since they existed solely to work around the absence of this restriction. There was one tiny impact on actual source code (one line in one file) shown here, necessitated because the literal null is not eligible to be implicitly converted to A via <:<. def f[A](implicit ev: Null <:< A): A = null // before def f[A](implicit ev: Null <:< A): A = ev(null) // after As impositions go it's on the tame side.