aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/inlineAccess.scala
blob: cfb1cc06fd6b2142651eb092a9fa0db1fa81b027 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                         
package p {
class C {
  protected def f(): Unit = ()

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

object Test {
  def main(args: Array[String]) = {
    val c = new p.C()
    c.inl()
  }
}