Skip to content

Commit b0fceeb

Browse files
committed
SI-7335 Sharpen up comment about implicit prioritization.
1 parent ae69de4 commit b0fceeb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/library/scala/Predef.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ private[scala] abstract class LowPriorityImplicits {
484484
// These eight implicits exist solely to exclude Null from the domain of
485485
// the boxed types, so that e.g. "var x: Int = null" is a compile time
486486
// error rather than a delayed null pointer exception by way of the
487-
// conversion from java.lang.Integer. If defined in the same file as
487+
// conversion from java.lang.Integer. If defined in the same template as
488488
// Integer2int, they would have higher priority because Null is a subtype
489489
// of Integer. We balance that out and create conflict by moving the
490490
// definition into the superclass.
@@ -531,4 +531,3 @@ private[scala] abstract class LowPriorityImplicits {
531531
def apply() = immutable.IndexedSeq.newBuilder[T]
532532
}
533533
}
534-

0 commit comments

Comments
 (0)