summaryrefslogtreecommitdiff
path: root/test/files/pos/trait_fields_static_fwd.scala
blob: af2cdad9ff4d796511a676a216f20735f457045b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
trait T {
  // Need to mark the synthesized member in the object's module class as notPROTECTED,
  // since the trait member will receive this flag later.
  // If we don't add notPROTECTED to the synthesized one, the member will not be seen as overriding the trait member.
  // Therefore, addForwarders's call to membersBasedOnFlags would see the deferred member in the trait,
  // instead of the concrete (desired) one in the class, and thus not create the static forwarder.
  protected val propFilename: String = "/"
}

object P extends T