aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/i2066.scala15
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
+ }
+}