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
scalac will not show the issue - use scalacli with a build server (or another built tool):
scala-cli A.scala B.scala
uncomment [1]
scala-cli A.scala B.scala
Output
no error, successful compilation
Expectation
Same error as when initially compiling A.scala and B.scala with uncommented [1], where we get:
[error] ./B.scala:4:1
[error] a is already defined asmethod a in /Users/jchyb/workspace/scala3/A.scala
[error]
[error] Note that overloaded methods must all be defined in the same group of toplevel definitions
[error] defa() =???
[error] ^^^^^^^^^^^^^