aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t7246/Test.scala
blob: 619583234245cddcb4416cc30484bf505fe92c9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
object Test extends dotty.runtime.LegacyApp {

  val so = new SubOuter
  val si = new so.SubInner
  println(si.bar)
}

class SubOuter extends Outer {

  val foo = "hello"

  class SubInner extends Inner {
    def bar = foo
  }

}