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
Describe the bug
If the compiled sources contain more than one java file, a warning about using directives in multiple files is reported, even if there are no using directives in the source files.
To Reproduce
mkdir /tmp/bug-repro
cd /tmp/bug-repro
echo'public class Foo {}'> Foo.java
echo'public class Bar {}'> Bar.java
scala-cli compile .
This outputs:
[warn] ./Bar.java:1:1:Using directives detected in multiple files. It is recommended to keep them centralized in the /private/tmp/bug-repro/project.scala file.
[warn] public classBar {}
[warn] ^
[warn] ./Foo.java:1:1:Using directives detected in multiple files. It is recommended to keep them centralized in the /private/tmp/bug-repro/project.scala file.
[warn] public classFoo {}
[warn] ^
Expected behaviour
Compilation should report no warnings
The text was updated successfully, but these errors were encountered:
Version(s)
0.1.19
Describe the bug
If the compiled sources contain more than one java file, a warning about using directives in multiple files is reported, even if there are no using directives in the source files.
To Reproduce
This outputs:
Expected behaviour
Compilation should report no warnings
The text was updated successfully, but these errors were encountered: