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

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