|
1 |
| -caseclass_private_constructor.scala:6: error: method apply in object A cannot be accessed in object A |
| 1 | +caseclass_private_constructor.scala:6: error: method apply in object A cannot be accessed as a member of object A from object ATest |
2 | 2 | error after rewriting to A.<apply: error>
|
3 | 3 | possible cause: maybe a wrong Dynamic method signature?
|
4 | 4 | def a1: A = A(1) // error: apply is private
|
5 | 5 | ^
|
6 |
| -caseclass_private_constructor.scala:7: error: method copy in class A cannot be accessed in A |
| 6 | +caseclass_private_constructor.scala:7: error: method copy in class A cannot be accessed as a member of A from object ATest |
7 | 7 | def a2: A = a1.copy(2) // error: copy is private
|
8 | 8 | ^
|
9 |
| -caseclass_private_constructor.scala:12: error: method apply in object B cannot be accessed in object B |
| 9 | +caseclass_private_constructor.scala:12: error: method apply in object B cannot be accessed as a member of object B from object BTest |
10 | 10 | error after rewriting to B.<apply: error>
|
11 | 11 | possible cause: maybe a wrong Dynamic method signature?
|
12 | 12 | def b1: B = B(1) // error: apply is private
|
13 | 13 | ^
|
14 |
| -caseclass_private_constructor.scala:13: error: method copy in class B cannot be accessed in B |
| 14 | +caseclass_private_constructor.scala:13: error: method copy in class B cannot be accessed as a member of B from object BTest |
15 | 15 | def b2: B = b1.copy(2) // error: copy is private
|
16 | 16 | ^
|
17 |
| -caseclass_private_constructor.scala:24: error: method apply in object C cannot be accessed in object qualified_private.C |
| 17 | +caseclass_private_constructor.scala:24: error: method apply in object C cannot be accessed as a member of object qualified_private.C from object QPrivTest |
18 | 18 | error after rewriting to qualified_private.C.<apply: error>
|
19 | 19 | possible cause: maybe a wrong Dynamic method signature?
|
20 | 20 | def c1: C = C(1) // error: apply is private
|
21 | 21 | ^
|
22 |
| -caseclass_private_constructor.scala:25: error: method copy in class C cannot be accessed in qualified_private.C |
| 22 | +caseclass_private_constructor.scala:25: error: method copy in class C cannot be accessed as a member of qualified_private.C from object QPrivTest |
23 | 23 | def c2: C = c1.copy(2) // error: copy is private
|
24 | 24 | ^
|
25 |
| -caseclass_private_constructor.scala:27: error: method apply in object D cannot be accessed in object qualified_private.D |
| 25 | +caseclass_private_constructor.scala:27: error: method apply in object D cannot be accessed as a member of object qualified_private.D from object QPrivTest |
26 | 26 | error after rewriting to qualified_private.D.<apply: error>
|
27 | 27 | possible cause: maybe a wrong Dynamic method signature?
|
28 | 28 | def d1: D = D(1) // error: apply is private
|
29 | 29 | ^
|
30 |
| -caseclass_private_constructor.scala:28: error: method copy in class D cannot be accessed in qualified_private.D |
| 30 | +caseclass_private_constructor.scala:28: error: method copy in class D cannot be accessed as a member of qualified_private.D from object QPrivTest |
31 | 31 | def d2: D = d1.copy(2) // error: copy is private
|
32 | 32 | ^
|
33 |
| -caseclass_private_constructor.scala:34: error: method copy in class E cannot be accessed in E |
| 33 | +caseclass_private_constructor.scala:34: error: method copy in class E cannot be accessed as a member of E from object ETest |
34 | 34 | Access to protected method copy not permitted because
|
35 | 35 | enclosing object ETest is not a subclass of
|
36 | 36 | class E where target is defined
|
37 | 37 | def e2: E = e2.copy(2) // error: copy is protected
|
38 | 38 | ^
|
39 |
| -caseclass_private_constructor.scala:43: error: method copy in class F cannot be accessed in qualified_protected.F |
| 39 | +caseclass_private_constructor.scala:43: error: method copy in class F cannot be accessed as a member of qualified_protected.F from object QProtTest |
40 | 40 | Access to protected method copy not permitted because
|
41 | 41 | enclosing object QProtTest is not a subclass of
|
42 | 42 | class F in object qualified_protected where target is defined
|
43 | 43 | def f2: F = f2.copy(2) // error: copy is protected
|
44 | 44 | ^
|
45 |
| -caseclass_private_constructor.scala:57: error: method copy in class OverrideApply cannot be accessed in OverrideApply |
| 45 | +caseclass_private_constructor.scala:57: error: method copy in class OverrideApply cannot be accessed as a member of OverrideApply from object OverrideTest |
46 | 46 | def oa = OverrideApply(42).copy(24) // error: copy is still private
|
47 | 47 | ^
|
48 |
| -caseclass_private_constructor.scala:58: error: method apply in object OverrideCopy cannot be accessed in object OverrideCopy |
| 48 | +caseclass_private_constructor.scala:58: error: method apply in object OverrideCopy cannot be accessed as a member of object OverrideCopy from object OverrideTest |
49 | 49 | error after rewriting to OverrideCopy.<apply: error>
|
50 | 50 | possible cause: maybe a wrong Dynamic method signature?
|
51 | 51 | def oc = OverrideCopy(42) // error: apply is still private
|
52 | 52 | ^
|
53 |
| -12 errors found |
| 53 | +12 errors |
0 commit comments