aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t8445.scala
blob: 72116d8e5f86fa0edecd9bd29939e76f3de3fb02 (plain) (tree)
1
2
3
4
5
6
7
8
9







                      
                                             

                                                        
object X {
  class Y
  def y = new Y {
    class Z
    def z = classOf[Z]
  }
}

object Test extends dotty.runtime.LegacyApp {
  assert(X.y.z.getEnclosingClass.getName == "X$$anon$1")
}