aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t949.scala
blob: 9363f60c6d5812dc3e064b183c7a9dc615bc1d22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
object Test extends dotty.runtime.LegacyApp {

    private def f = new T { val state = State.A }

    private object State extends Enumeration {
        val A, B = Value
    }

    f
}

trait T {
}