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
Now compile the second file having classes of the first on the classpath:
objectTestextendsApp {
Api.foo
}
Here we go:
D:\Dropbox\Scratchpad\Scala\Test2.scala:2:error: ambiguous reference to overloaded definition,
both method foo in objectApi of type=>String
and method foo in objectApi of type=>Unitmatch expected type?Api.foo
^
one error found
If both files are compiled in a single compilation run, everything is fine.
The text was updated successfully, but these errors were encountered:
Compile this file first:
Now compile the second file having classes of the first on the classpath:
Here we go:
If both files are compiled in a single compilation run, everything is fine.
The text was updated successfully, but these errors were encountered: