diff options
Diffstat (limited to 'test/files/pos/t9123.scala')
-rw-r--r-- | test/files/pos/t9123.scala | 10 |
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) + } +} |