summaryrefslogtreecommitdiff
path: root/test/files/pos/sammy_ctor_arg.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/sammy_ctor_arg.scala')
-rw-r--r--test/files/pos/sammy_ctor_arg.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/sammy_ctor_arg.scala b/test/files/pos/sammy_ctor_arg.scala
new file mode 100644
index 0000000000..3c556d59f0
--- /dev/null
+++ b/test/files/pos/sammy_ctor_arg.scala
@@ -0,0 +1,4 @@
+trait Fun[A, B] { def apply(a: A): B }
+// can't do sam expansion until the sam body def is a static method in the sam class, and not a local method in a block'
+class C(f: Fun[Int, String])
+class Test extends C(s => "a") \ No newline at end of file