diff --git a/test/files/neg/caseclass_private_constructor.check b/test/files/neg/caseclass_private_constructor.check index 0e94a44780ba..c6d98dbc89f1 100644 --- a/test/files/neg/caseclass_private_constructor.check +++ b/test/files/neg/caseclass_private_constructor.check @@ -1,51 +1,51 @@ -caseclass_private_constructor.scala:4: error: method apply in object A cannot be accessed in object A +caseclass_private_constructor.scala:6: error: method apply in object A cannot be accessed in object A error after rewriting to A. possible cause: maybe a wrong Dynamic method signature? def a1: A = A(1) // error: apply is private ^ -caseclass_private_constructor.scala:5: error: method copy in class A cannot be accessed in A +caseclass_private_constructor.scala:7: error: method copy in class A cannot be accessed in A def a2: A = a1.copy(2) // error: copy is private ^ -caseclass_private_constructor.scala:10: error: method apply in object B cannot be accessed in object B +caseclass_private_constructor.scala:12: error: method apply in object B cannot be accessed in object B error after rewriting to B. possible cause: maybe a wrong Dynamic method signature? def b1: B = B(1) // error: apply is private ^ -caseclass_private_constructor.scala:11: error: method copy in class B cannot be accessed in B +caseclass_private_constructor.scala:13: error: method copy in class B cannot be accessed in B def b2: B = b1.copy(2) // error: copy is private ^ -caseclass_private_constructor.scala:22: error: method apply in object C cannot be accessed in object qualified_private.C +caseclass_private_constructor.scala:24: error: method apply in object C cannot be accessed in object qualified_private.C error after rewriting to qualified_private.C. possible cause: maybe a wrong Dynamic method signature? def c1: C = C(1) // error: apply is private ^ -caseclass_private_constructor.scala:23: error: method copy in class C cannot be accessed in qualified_private.C +caseclass_private_constructor.scala:25: error: method copy in class C cannot be accessed in qualified_private.C def c2: C = c1.copy(2) // error: copy is private ^ -caseclass_private_constructor.scala:25: error: method apply in object D cannot be accessed in object qualified_private.D +caseclass_private_constructor.scala:27: error: method apply in object D cannot be accessed in object qualified_private.D error after rewriting to qualified_private.D. possible cause: maybe a wrong Dynamic method signature? def d1: D = D(1) // error: apply is private ^ -caseclass_private_constructor.scala:26: error: method copy in class D cannot be accessed in qualified_private.D +caseclass_private_constructor.scala:28: error: method copy in class D cannot be accessed in qualified_private.D def d2: D = d1.copy(2) // error: copy is private ^ -caseclass_private_constructor.scala:32: error: method copy in class E cannot be accessed in E +caseclass_private_constructor.scala:34: error: method copy in class E cannot be accessed in E Access to protected method copy not permitted because enclosing object ETest is not a subclass of class E where target is defined def e2: E = e2.copy(2) // error: copy is protected ^ -caseclass_private_constructor.scala:41: error: method copy in class F cannot be accessed in qualified_protected.F +caseclass_private_constructor.scala:43: error: method copy in class F cannot be accessed in qualified_protected.F Access to protected method copy not permitted because enclosing object QProtTest is not a subclass of class F in object qualified_protected where target is defined def f2: F = f2.copy(2) // error: copy is protected ^ -caseclass_private_constructor.scala:55: error: method copy in class OverrideApply cannot be accessed in OverrideApply +caseclass_private_constructor.scala:57: error: method copy in class OverrideApply cannot be accessed in OverrideApply def oa = OverrideApply(42).copy(24) // error: copy is still private ^ -caseclass_private_constructor.scala:56: error: method apply in object OverrideCopy cannot be accessed in object OverrideCopy +caseclass_private_constructor.scala:58: error: method apply in object OverrideCopy cannot be accessed in object OverrideCopy error after rewriting to OverrideCopy. possible cause: maybe a wrong Dynamic method signature? def oc = OverrideCopy(42) // error: apply is still private