Skip to content

Commit

Permalink
line numbers :)))
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper-M committed Sep 23, 2019
1 parent 3031032 commit 76f13ba
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions 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.<apply: error>
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.<apply: error>
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.<apply: error>
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.<apply: error>
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.<apply: error>
possible cause: maybe a wrong Dynamic method signature?
def oc = OverrideCopy(42) // error: apply is still private
Expand Down

0 comments on commit 76f13ba

Please sign in to comment.