implicit import of scala.Predef. Spec differs from implementation #7672
I found very confusing behaviour for implicit import of scala.Predef.
Spec, section 9.1 Compilation units states the following:
Implicitly imported into every compilation unit are, in that order : the package java.lang, the package scala, and the object scala.Predef (§12.5).
But if I open the implementation:
method rootImports and scaladoc:
/** List of symbols to import from in a root context. Typically that
There is an exception in the comment: if the unit body has an import of Predef among its leading imports.
I think spec should mention this exception.
The text was updated successfully, but these errors were encountered: