We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e06f24 + fbea0ff commit ce0e25cCopy full SHA for ce0e25c
compiler/src/dotty/tools/dotc/parsing/JavaParsers.scala
@@ -1013,7 +1013,9 @@ object JavaParsers {
1013
}
1014
val unit = atSpan(start) { PackageDef(pkg, buf.toList) }
1015
accept(EOF)
1016
- unit
+ unit match
1017
+ case PackageDef(Ident(nme.EMPTY_PACKAGE), Nil) => EmptyTree
1018
+ case _ => unit
1019
1020
1021
tests/pos/i13310.java
@@ -0,0 +1,2 @@
1
+// The entire contents of this file is intentionally commented out
2
+// public class i13310 {}
0 commit comments