summaryrefslogtreecommitdiff
path: root/test/files/pos/t5508-min-okay.scala
blob: 3a38b9c5ea49d728573335dcc9b73076b37c3086 (plain) (blame)
1
2
3
4
5
6
object Test {
  trait NestedTrait { // must be nested and a trait
    private val _st : Int = 0 // crashes if changed to private[this]
    val escape = { () => _st }
  }
}