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.
1 parent 99afc89 commit fcf3bcdCopy full SHA for fcf3bcd
tests/pos-scala2/naming-resolution/callsite.scala
@@ -0,0 +1,10 @@
1
+// This one should be rejected according to spec. The import takes precedence
2
+// over the type in the same package because the typeis declared in a
3
+// different compilation unit. scalac does not conform to spec here.
4
+package naming.resolution
5
+
6
+import java.nio.file._ // Imports `Files`
7
8
+object Resolution {
9
+ def gimmeFiles: Files = Files.list(Paths.get("."))
10
+}
tests/pos-scala2/naming-resolution/package.scala
@@ -0,0 +1,5 @@
+package naming
+package object resolution {
+ type Files = java.util.stream.Stream[java.nio.file.Path]
0 commit comments