diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala index 60f375c116fc..39a1d0b4652b 100644 --- a/compiler/src/dotty/tools/dotc/core/Definitions.scala +++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala @@ -1387,13 +1387,6 @@ class Definitions { else NoType } - val predefClassNames: Set[Name] = - Set("Predef$", "DeprecatedPredef", "LowPriorityImplicits").map(_.toTypeName.unmangleClassName) - - /** Is `cls` the predef module class, or a class inherited by Predef? */ - def isPredefClass(cls: Symbol): Boolean = - (cls.owner eq ScalaPackageClass) && predefClassNames.contains(cls.name) - private val JavaImportFns: List[RootRef] = List( RootRef(() => JavaLangPackageVal.termRef) ) diff --git a/tests/neg-custom-args/deprecation/t3235-minimal.scala b/tests/neg-custom-args/deprecation/t3235-minimal.scala index 3aef0eea2dae..f023614768bc 100644 --- a/tests/neg-custom-args/deprecation/t3235-minimal.scala +++ b/tests/neg-custom-args/deprecation/t3235-minimal.scala @@ -1,8 +1,8 @@ object Test { def main(args: Array[String]): Unit = { - assert(123456789.round == 123456789) // error - assert(math.round(123456789) == 123456789) // error - assert(1234567890123456789L.round == 1234567890123456789L) // error - assert(math.round(1234567890123456789L) == 1234567890123456789L) // error + assert(123456789.round == 123456789) // error (Int to Flaot) + assert(math.round(123456789) == 123456789) + assert(1234567890123456789L.round == 1234567890123456789L) // error (Long to Float) + assert(math.round(1234567890123456789L) == 1234567890123456789L) } }