summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t6231.check6
-rw-r--r--test/files/neg/t6231.flags1
-rw-r--r--test/files/neg/t6231.scala15
3 files changed, 0 insertions, 22 deletions
diff --git a/test/files/neg/t6231.check b/test/files/neg/t6231.check
deleted file mode 100644
index 6e107c97c7..0000000000
--- a/test/files/neg/t6231.check
+++ /dev/null
@@ -1,6 +0,0 @@
-t6231.scala:4: error: Implementation restriction: local trait Bug$X$1 is unable to automatically capture the
-free variable value ev$1 on behalf of <$anon: Function0>. You can manually assign it to a val inside the trait,
-and refer to that val in <$anon: Function0>. For more details, see SI-6231.
- def qux = { () => ev }
- ^
-one error found
diff --git a/test/files/neg/t6231.flags b/test/files/neg/t6231.flags
deleted file mode 100644
index ac96850b69..0000000000
--- a/test/files/neg/t6231.flags
+++ /dev/null
@@ -1 +0,0 @@
--Ydelambdafy:inline \ No newline at end of file
diff --git a/test/files/neg/t6231.scala b/test/files/neg/t6231.scala
deleted file mode 100644
index 1e5b4e0e1a..0000000000
--- a/test/files/neg/t6231.scala
+++ /dev/null
@@ -1,15 +0,0 @@
-object Bug {
- def bar(ev: Any) = {
- trait X {
- def qux = { () => ev }
- }
- new X {}.qux()
-
- // workaround
- trait Y {
- val ev2 = ev // manually capture `ev` so that `ev2` is added to the trait interface.
- def qux = { () => ev2 }
- }
- }
-}
-