aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3837.scala
blob: bcaf63cc8d396e02c55b8cce83fc38546003d7bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class BipClass { }
trait BipTrait {
  self: BipClass =>

  private[this] def foo() = 5
  def bar() = this.foo()
}
// error: value foo is not a member of BipTrait with BipClass
//   def bar() = this.foo()
//                    ^