summaryrefslogtreecommitdiff
path: root/test/files/neg/t6889.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-6899, prohibit dangerous, useless implicit conversions.Paul Phillips2013-06-041-0/+18
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.