summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-03-11 20:19:24 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-03-11 20:19:24 -0700
commit80f77cc4d1bc5532afbe30cbc126cf13a3f24e7c (patch)
tree76a8369300e50624ff1c104487a64066adb32af2 /test/files
parent7be46bd6e1b51c8e0e078b09eae3259810f3af10 (diff)
parent814ecad8a0f4830ce97112e00e4823a2b5c047e0 (diff)
downloadscala-80f77cc4d1bc5532afbe30cbc126cf13a3f24e7c.tar.gz
scala-80f77cc4d1bc5532afbe30cbc126cf13a3f24e7c.tar.bz2
scala-80f77cc4d1bc5532afbe30cbc126cf13a3f24e7c.zip
Merge pull request #3616 from retronym/ticket/8363
SI-8363 Disable -Ydelambdafy:method in constructor position
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t8363.flags1
-rw-r--r--test/files/pos/t8363.scala7
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t8363.flags b/test/files/pos/t8363.flags
new file mode 100644
index 0000000000..48b438ddf8
--- /dev/null
+++ b/test/files/pos/t8363.flags
@@ -0,0 +1 @@
+-Ydelambdafy:method
diff --git a/test/files/pos/t8363.scala b/test/files/pos/t8363.scala
new file mode 100644
index 0000000000..639faf4120
--- /dev/null
+++ b/test/files/pos/t8363.scala
@@ -0,0 +1,7 @@
+class C(a: Any)
+class Test {
+ def foo: Any = {
+ def form = 0
+ class C1 extends C(() => form)
+ }
+}