File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
13
13
// GENERATED CODE: DO NOT EDIT.
14
- // genprod generated these sources at: 2019-06-18T20:49:11.955Z
14
+ // genprod generated these sources at: 2020-02-01T04:13:22.795Z
15
15
16
16
package scala
17
17
Original file line number Diff line number Diff line change @@ -478,8 +478,9 @@ object Int extends AnyValCompanion {
478
478
override def toString = " object scala.Int"
479
479
/** Language mandated coercions from Int to "wider" types. */
480
480
import scala .language .implicitConversions
481
- implicit def int2long ( x : Int ) : Long = x.toLong
481
+ @ deprecated( " Implicit conversion from Int to Float is dangerous because it loses precision. Write `.toFloat` instead. " , " 2.13.1 " )
482
482
implicit def int2float (x : Int ): Float = x.toFloat
483
+ implicit def int2long (x : Int ): Long = x.toLong
483
484
implicit def int2double (x : Int ): Double = x.toDouble
484
485
}
485
486
Original file line number Diff line number Diff line change @@ -475,7 +475,9 @@ object Long extends AnyValCompanion {
475
475
override def toString = " object scala.Long"
476
476
/** Language mandated coercions from Long to "wider" types. */
477
477
import scala .language .implicitConversions
478
+ @ deprecated(" Implicit conversion from Long to Float is dangerous because it loses precision. Write `.toFloat` instead." , " 2.13.1" )
478
479
implicit def long2float (x : Long ): Float = x.toFloat
480
+ @ deprecated(" Implicit conversion from Long to Double is dangerous because it loses precision. Write `.toDouble` instead." , " 2.13.1" )
479
481
implicit def long2double (x : Long ): Double = x.toDouble
480
482
}
481
483
You can’t perform that action at this time.
0 commit comments