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
foo/Test.scala:6:error: not found: typeBdefb=newB(1)
^1 error
note
If I compile all sources together the accessibility is checked correctly:
$ $HOME/Applications/scala-2.13.1/bin/scalac bar/B.scala foo/Test.scala -d foo/classes
foo/Test.scala:6: error: not found: type B
def b = new B(1)
^
one error found
keyword for search
visibility
The text was updated successfully, but these errors were encountered:
I thought there was a similar "qualified access" ticket, but maybe not. It deserves a regression test, since Lukas feared side effects of symbol forcing, but I don't think he necessarily anticipated that other checks would start to work correctly.
This is a retroactive bug report on Scala 2.12.x and 2.13.0 ~ 1 since it seems to be fixed in Scala 2.13.2.
reproduction steps
using Scala 2.13.1
bar/B.scala
foo/Test.scala
bash
problem
The separate compilation violates
protected[bar]
.expectation
Test
should not compile.note
If I compile all sources together the accessibility is checked correctly:
keyword for search
visibility
The text was updated successfully, but these errors were encountered: