diff options
author | Ólafur Páll Geirsson <olafurpg@gmail.com> | 2016-08-05 11:28:00 +0200 |
---|---|---|
committer | Ólafur Páll Geirsson <olafurpg@gmail.com> | 2016-08-23 12:15:15 +0200 |
commit | 233b8096359875d4b6432fbe5988724652b85752 (patch) | |
tree | b55ba62af6dfd22b3c094db40b94c1f45a59e096 /tests/pending/naming-resolution | |
parent | bcfa3be8cfe2be5d79d0147e6c8fde2c38717623 (diff) | |
download | dotty-233b8096359875d4b6432fbe5988724652b85752.tar.gz dotty-233b8096359875d4b6432fbe5988724652b85752.tar.bz2 dotty-233b8096359875d4b6432fbe5988724652b85752.zip |
Three incompatibilities with scalac.
Using Scala 2.11.8 and dotty at bcfa3be8cfe2be.
cc/ #1457
Diffstat (limited to 'tests/pending/naming-resolution')
-rw-r--r-- | tests/pending/naming-resolution/callsite.scala | 7 | ||||
-rw-r--r-- | tests/pending/naming-resolution/compiler.error | 8 | ||||
-rw-r--r-- | tests/pending/naming-resolution/package.scala | 5 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/pending/naming-resolution/callsite.scala b/tests/pending/naming-resolution/callsite.scala new file mode 100644 index 000000000..b6f2000c9 --- /dev/null +++ b/tests/pending/naming-resolution/callsite.scala @@ -0,0 +1,7 @@ +package naming.resolution + +import java.nio.file._ // Imports `Files` + +object Resolution { + def gimmeFiles: Files = Files.list(Paths.get(".")) +} diff --git a/tests/pending/naming-resolution/compiler.error b/tests/pending/naming-resolution/compiler.error new file mode 100644 index 000000000..81d6b3cfa --- /dev/null +++ b/tests/pending/naming-resolution/compiler.error @@ -0,0 +1,8 @@ +$ scalac tests/pending/naming-resolution/*.scala +$ ./bin/dotc tests/pending/naming-resolution/*.scala +tests/pending/naming-resolution/callsite.scala:6: error: type mismatch: + found : java.util.stream.Stream[java.nio.file.Path] + required: java.nio.file.Files + def gimmeFiles: Files = Files.list(Paths.get(".")) + ^ +one error found diff --git a/tests/pending/naming-resolution/package.scala b/tests/pending/naming-resolution/package.scala new file mode 100644 index 000000000..f0e26ee95 --- /dev/null +++ b/tests/pending/naming-resolution/package.scala @@ -0,0 +1,5 @@ +package naming + +package object resolution { + type Files = java.util.stream.Stream[java.nio.file.Path] +} |