File tree 2 files changed +4
-11
lines changed
compiler/src/dotty/tools/dotc/core
tests/neg-custom-args/deprecation
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -1387,13 +1387,6 @@ class Definitions {
1387
1387
else NoType
1388
1388
}
1389
1389
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
-
1397
1390
private val JavaImportFns : List [RootRef ] = List (
1398
1391
RootRef (() => JavaLangPackageVal .termRef)
1399
1392
)
Original file line number Diff line number Diff line change 1
1
object Test {
2
2
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 )
7
7
}
8
8
}
You can’t perform that action at this time.
0 commit comments