blob: cfb1cc06fd6b2142651eb092a9fa0db1fa81b027 (
plain) (
tree)
|
|
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()
}
}
|