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
bjornregnell
changed the title
Error "Cyclic reference involving module" when using exporti on top level
Error "Cyclic reference involving module" when using export on top level
Jan 17, 2021
Uh oh!
There was an error while loading. Please reload this page.
Minimized code
In file
test.scala
:Output
Expectation
Export on top level should work.
There is a work-around: put the export in another file
test2.scala
and now bothtest.scala
andtest2.scala
compiles:Note that A is now visible on top level without an
import X._
in filetest2.scala
, as expected.Output with both files (but it shouldn't be necessary to put the export in another file...):
The text was updated successfully, but these errors were encountered: