aboutsummaryrefslogtreecommitdiff
path: root/tests/pending
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2016-09-16 22:43:24 +0300
committerGitHub <noreply@github.com>2016-09-16 22:43:24 +0300
commitc420b4cc0573e88bf301d4e020e2ad91b26806d0 (patch)
treec9aef9111054201e228577b3d58b61254bec3558 /tests/pending
parent186f9551da6c7ace243c8e784f8eb5d6355af419 (diff)
parent062b4133db13bb77369cae81a5ec89e4b2bb6699 (diff)
downloaddotty-c420b4cc0573e88bf301d4e020e2ad91b26806d0.tar.gz
dotty-c420b4cc0573e88bf301d4e020e2ad91b26806d0.tar.bz2
dotty-c420b4cc0573e88bf301d4e020e2ad91b26806d0.zip
Merge pull request #1465 from dotty-staging/fix-#1457
Fix #1457: Three incompatbilities with scalac
Diffstat (limited to 'tests/pending')
-rw-r--r--tests/pending/hkt/compiler.error6
-rw-r--r--tests/pending/hkt/hkt.scala15
-rw-r--r--tests/pending/import-rewrite/compiler.error6
-rw-r--r--tests/pending/import-rewrite/file.scala10
-rw-r--r--tests/pending/import-rewrite/rewrite.scala7
5 files changed, 0 insertions, 44 deletions
diff --git a/tests/pending/hkt/compiler.error b/tests/pending/hkt/compiler.error
deleted file mode 100644
index b31760891..000000000
--- a/tests/pending/hkt/compiler.error
+++ /dev/null
@@ -1,6 +0,0 @@
-$ scalac tests/pending/hkt/*.scala
-$ ./bin/dotc tests/pending/hkt/*.scala
-tests/pending/hkt/hkt.scala:14: error: method empty in object Child does not take type parameters
- Child.empty[Int]
- ^
-one error found
diff --git a/tests/pending/hkt/hkt.scala b/tests/pending/hkt/hkt.scala
deleted file mode 100644
index 34858cd95..000000000
--- a/tests/pending/hkt/hkt.scala
+++ /dev/null
@@ -1,15 +0,0 @@
-import scala.language.higherKinds
-// Minimal reproduction for:
-// scala.collection.mutable.ArrayStack.empty[Int]
-
-abstract class Super[C[_]] {
- def empty[T]: C[T] = ???
-}
-
-class Child[T]
-
-object Child extends Super[Child] {
- def empty: Child[Nothing] = new Child()
-
- Child.empty[Int]
-}
diff --git a/tests/pending/import-rewrite/compiler.error b/tests/pending/import-rewrite/compiler.error
deleted file mode 100644
index 0832d33bb..000000000
--- a/tests/pending/import-rewrite/compiler.error
+++ /dev/null
@@ -1,6 +0,0 @@
-$ scalac tests/pending/import-rewrite/*.scala
-$ ./bin/dotc tests/pending/import-rewrite/*.scala
-tests/pending/import-rewrite/rewrite.scala:5: error: value apply is not a member of java.io.File.type
- Seq("").map(File.apply)
- ^
-one error found
diff --git a/tests/pending/import-rewrite/file.scala b/tests/pending/import-rewrite/file.scala
deleted file mode 100644
index e52581e81..000000000
--- a/tests/pending/import-rewrite/file.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-package file
-
-class File private (val str: String) {
- def name: String = "name"
-}
-
-object File {
- def apply(str: String): File = new File(str)
-}
-
diff --git a/tests/pending/import-rewrite/rewrite.scala b/tests/pending/import-rewrite/rewrite.scala
deleted file mode 100644
index 0bda02c5e..000000000
--- a/tests/pending/import-rewrite/rewrite.scala
+++ /dev/null
@@ -1,7 +0,0 @@
-package file
-import java.io.{File => JFile, _}, StreamTokenizer.{TT_EOF => eof}
-
-object Main {
- Seq("").map(File.apply)
- // def name(file: File) = file.name
-}