aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0770.scala
blob: 54990ec09346ac3867858da0ea624c67fb53879f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait A
{
    private[this] val p = 5

    def f = (b: Byte) => p
}

trait B
{
    def failure: Boolean
    def success = !failure
}