aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-03-12 22:18:00 +0100
committerGitHub <noreply@github.com>2017-03-12 22:18:00 +0100
commitb3194406d8e1a28690faee12257b53f9dcf49506 (patch)
tree8f91b32b052f4244df744e8b2fd2416821a836fc /tests/pos
parente5e2f826b2db7a124d7f59647047d3e0bec5f4ab (diff)
parent32617344f90001faa65a020f54d309d076da8fcc (diff)
downloaddotty-b3194406d8e1a28690faee12257b53f9dcf49506.tar.gz
dotty-b3194406d8e1a28690faee12257b53f9dcf49506.tar.bz2
dotty-b3194406d8e1a28690faee12257b53f9dcf49506.zip
Merge pull request #2080 from dotty-staging/fix#-2066
Fix #2066: Don't qualify private members in SelectionProto's...
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
+ }
+}