aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/t3663/main.scala
blob: a70ee52cf8bd3909d9ecd8f516479bd13e4037ed (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                           
package test

final class Test extends PackageProtected {
  def bar = foo
}

package another {
  object Main {
    def bug(t: Test): Unit = {
      // Can always be replicated.
      println(t.foo)
    }
  }
}