summaryrefslogtreecommitdiff
path: root/test/files/run/trait_fields_repl.check
blob: d03a565c7b3e03e11e565fb4644e35392c8fcd01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
scala> trait B { val y = "a" }
defined trait B

scala> trait T extends B { val x: y.type = y }
defined trait T

scala> println((new T{}).x)
a

scala> :quit