aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t6888.scala
blob: f58116c31c5938b69e0566d81071ba0b737cbf82 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                    
                                             




                            
class C {
  val x = 1
  object $ {
    val y = x + x
    class abc$ {
      def xy = x + y
    }
    object abc$ {
      def xy = x + y
    }
  }
}

object Test extends dotty.runtime.LegacyApp {
  val c = new C()
  println(c.$.y)
  println(c.$.abc$.xy)
  println(new c.$.abc$().xy)
}