aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/inlineAccess/C_1.scala
blob: 6db1ea7870188898128a49abd0d4c130861830d3 (plain) (blame)
1
2
3
4
5
6
7
8
package p {
class C {
  protected def f(): Unit = ()

  @inline
  def inl() = f() // error (when inlined): not accessible
}
}