summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2012-06-19 01:53:46 -0700
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-06-19 01:53:46 -0700
commitacbb2f668d363f062fdbb951b33b00dbfcca47ad (patch)
tree4b007cbda7ee26a02e848fc0729d2e32c1b82bce /test/files/neg
parentc45132363dadb07cf372edc57ca6dbcfa97f1c0e (diff)
parentbec459a554d978f19dc0b40289d9179dbc28de78 (diff)
downloadscala-acbb2f668d363f062fdbb951b33b00dbfcca47ad.tar.gz
scala-acbb2f668d363f062fdbb951b33b00dbfcca47ad.tar.bz2
scala-acbb2f668d363f062fdbb951b33b00dbfcca47ad.zip
Merge pull request #737 from scalamacros/topic/reifyanonymous
enables reification of anonymous classes
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t5334_1.check4
-rw-r--r--test/files/neg/t5334_1.scala9
-rw-r--r--test/files/neg/t5334_2.check4
-rw-r--r--test/files/neg/t5334_2.scala9
4 files changed, 0 insertions, 26 deletions
diff --git a/test/files/neg/t5334_1.check b/test/files/neg/t5334_1.check
deleted file mode 100644
index eca854964a..0000000000
--- a/test/files/neg/t5334_1.check
+++ /dev/null
@@ -1,4 +0,0 @@
-t5334_1.scala:5: error: implementation restriction: cannot reify block of type C that involves a type declared inside the block being reified. consider casting the return value to a suitable type
- reify {
- ^
-one error found
diff --git a/test/files/neg/t5334_1.scala b/test/files/neg/t5334_1.scala
deleted file mode 100644
index b75badb145..0000000000
--- a/test/files/neg/t5334_1.scala
+++ /dev/null
@@ -1,9 +0,0 @@
-import scala.reflect.runtime.universe._
-import scala.tools.reflect.Eval
-
-object Test extends App {
- reify {
- class C { override def toString = "C" }
- new C
- }.eval
-} \ No newline at end of file
diff --git a/test/files/neg/t5334_2.check b/test/files/neg/t5334_2.check
deleted file mode 100644
index e21f0d5967..0000000000
--- a/test/files/neg/t5334_2.check
+++ /dev/null
@@ -1,4 +0,0 @@
-t5334_2.scala:5: error: implementation restriction: cannot reify block of type List[(C, C)] that involves a type declared inside the block being reified. consider casting the return value to a suitable type
- reify {
- ^
-one error found
diff --git a/test/files/neg/t5334_2.scala b/test/files/neg/t5334_2.scala
deleted file mode 100644
index e082e3b8e3..0000000000
--- a/test/files/neg/t5334_2.scala
+++ /dev/null
@@ -1,9 +0,0 @@
-import scala.reflect.runtime.universe._
-import scala.tools.reflect.Eval
-
-object Test extends App {
- reify {
- class C { override def toString() = "C" }
- List((new C, new C))
- }.eval
-} \ No newline at end of file