diff options
Diffstat (limited to 'tests/pos/i2066.scala')
-rw-r--r-- | tests/pos/i2066.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pos/i2066.scala b/tests/pos/i2066.scala new file mode 100644 index 000000000..505e5e334 --- /dev/null +++ b/tests/pos/i2066.scala @@ -0,0 +1,15 @@ +class Foo + +object Test { + implicit class One(x: Foo) { + def meth: Unit = {} + } + + implicit class Two(x: Foo) { + private def meth: Unit = {} + } + + def test(foo: Foo): Unit = { + foo.meth + } +} |