Top-level package objects are incorrectly inserted in the empty package #7932
Labels
area:desugar
Desugaring happens after parsing but before typing, see desugar.scala
itype:bug
stat:revisit
The empty package should only be used for definitions which have no parent package, so this is clearly incorrect, but I don't know what kind of problems this may cause:
dotty:
scalac:
This is important to get right since the standard library defines the top-level
package object scala
/cc @oderskyThe text was updated successfully, but these errors were encountered: