You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
som-snytt
changed the title
Introducing empty package def makes empty package available across files to named packages
Empty package is available across files to named packages
Jul 20, 2021
The visibility of definitions from the empty package is still an unsolved issue. This one will probably be solved together with #7891, you have mentioned.
Compiler version
Scala compiler version 3.0.3-RC1-bin-SNAPSHOT-git-7899462 -- Copyright 2002-2021, LAMP/EPFL
Minimized code
A file with definitions in empty package:
Another file with definitions in named package:
but it doesn't compile without the D2
Output
without the "enabling" D2 to "open" the empty package
Expectation
File visibility of empty package defs in named package, per #7891
Not magically visible empty package across compilation units, such as C visible when D2 is defined.
Empty package defs available to empty package anywhere and anything in same file.
The text was updated successfully, but these errors were encountered: