aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/inlineAccess
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/inlineAccess')
-rw-r--r--tests/neg/inlineAccess/C_1.scala12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/neg/inlineAccess/C_1.scala b/tests/neg/inlineAccess/C_1.scala
index 349f5b150..841222cf4 100644
--- a/tests/neg/inlineAccess/C_1.scala
+++ b/tests/neg/inlineAccess/C_1.scala
@@ -1,7 +1,9 @@
-package p {
+// error not yet recognized (independent of inlining)
+package p
+private class D
class C {
- protected def f(): Unit = ()
-
- inline def inl() = f() // error (when inlined): not accessible
-}
+ inline def inl(): Unit = {
+ val d = new D() // error (when inlined): not accessible
+ }
}
+