Skip to content

Commit f83886f

Browse files
committed
Delete dead, name-forcing code - fixing nightlies
1 parent add58e9 commit f83886f

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,13 +1387,6 @@ class Definitions {
13871387
else NoType
13881388
}
13891389

1390-
val predefClassNames: Set[Name] =
1391-
Set("Predef$", "DeprecatedPredef", "LowPriorityImplicits").map(_.toTypeName.unmangleClassName)
1392-
1393-
/** Is `cls` the predef module class, or a class inherited by Predef? */
1394-
def isPredefClass(cls: Symbol): Boolean =
1395-
(cls.owner eq ScalaPackageClass) && predefClassNames.contains(cls.name)
1396-
13971390
private val JavaImportFns: List[RootRef] = List(
13981391
RootRef(() => JavaLangPackageVal.termRef)
13991392
)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
object Test {
22
def main(args: Array[String]): Unit = {
3-
assert(123456789.round == 123456789) // error
4-
assert(math.round(123456789) == 123456789) // error
5-
assert(1234567890123456789L.round == 1234567890123456789L) // error
6-
assert(math.round(1234567890123456789L) == 1234567890123456789L) // error
3+
assert(123456789.round == 123456789) // error (Int to Flaot)
4+
assert(math.round(123456789) == 123456789)
5+
assert(1234567890123456789L.round == 1234567890123456789L) // error (Long to Float)
6+
assert(math.round(1234567890123456789L) == 1234567890123456789L)
77
}
88
}

0 commit comments

Comments
 (0)