summaryrefslogtreecommitdiff
path: root/test/files/pos/sammy_extends_function.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/sammy_extends_function.scala')
-rw-r--r--test/files/pos/sammy_extends_function.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/sammy_extends_function.scala b/test/files/pos/sammy_extends_function.scala
new file mode 100644
index 0000000000..e8cf5d8749
--- /dev/null
+++ b/test/files/pos/sammy_extends_function.scala
@@ -0,0 +1,4 @@
+// https://github.com/scala/scala-dev/issues/206
+
+trait T extends Function1[String, String]
+object O { (x => x): T }