aboutsummaryrefslogtreecommitdiff
path: root/tests/pos-scala2/naming-resolution/callsite.scala
blob: 036803a26930e654572d22a24e170998393dd806 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// This one should be rejected according to spec. The import takes precedence
// over the type in the same package because the typeis declared in a
// different compilation unit. scalac does not conform to spec here.
package naming.resolution

import java.nio.file._ // Imports `Files`

object Resolution {
  def gimmeFiles: Files = Files.list(Paths.get("."))
}