diff options
author | odersky <odersky@gmail.com> | 2017-02-02 13:48:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-02 13:48:42 +1100 |
commit | 64332a794c05cbf21491eaf0bfdf4482a80b1b10 (patch) | |
tree | f10436277073603ddacb3506e8ffcc039a84c54e /tests/pos | |
parent | cca5dd9bd0c8f0d2e5679c81f2c40247a45d7a02 (diff) | |
parent | d64d0a04402a397470081d6a777ecd3cd92e8c43 (diff) | |
download | dotty-64332a794c05cbf21491eaf0bfdf4482a80b1b10.tar.gz dotty-64332a794c05cbf21491eaf0bfdf4482a80b1b10.tar.bz2 dotty-64332a794c05cbf21491eaf0bfdf4482a80b1b10.zip |
Merge pull request #1922 from dotty-staging/fix-#1723
Fix-#1723: Avoid private leaks on completion
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i1723.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/i1723.scala b/tests/pos/i1723.scala new file mode 100644 index 000000000..75f7cd95c --- /dev/null +++ b/tests/pos/i1723.scala @@ -0,0 +1,8 @@ +class A { + private val x: List[Int] = List(1) + def foo = x.head // foo inferred type is this.x.scala$collection$immutable$List$$A +} + +class B extends A { + foo +} |