diff options
Diffstat (limited to 'tests/untried/pos/t8120.scala')
-rw-r--r-- | tests/untried/pos/t8120.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/pos/t8120.scala b/tests/untried/pos/t8120.scala new file mode 100644 index 000000000..e06f38d5d --- /dev/null +++ b/tests/untried/pos/t8120.scala @@ -0,0 +1,9 @@ +object A { + class C { + def m(a: Nothing): Int = 0 + } + implicit class RichAny(a: Any) { + def m(a: Any): Int = 0 + } + (new C).m({ case (x, y) => x } : Any => Any) +} |