summaryrefslogtreecommitdiff
path: root/test/files/pos/t9123.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t9123.scala')
-rw-r--r--test/files/pos/t9123.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t9123.scala b/test/files/pos/t9123.scala
new file mode 100644
index 0000000000..22d55b4351
--- /dev/null
+++ b/test/files/pos/t9123.scala
@@ -0,0 +1,10 @@
+trait Setting {
+ type T
+ def value: T
+}
+
+object Test {
+ def test(x: Some[Setting]) = x match {
+ case Some(dep) => Some(dep.value) map (_ => true)
+ }
+}