Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SI-5956 trigger copy generation with correct namer
the call to `addCopyMethod` passes `templateNamer`, which is supposed to be the namer of the case class template. with two classes of the same name, `addCopyMethod` was triggered in the wrong template.
- Loading branch information
Showing
4 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
a.scala:1: error: Companions 'object Foo' and 'trait Foo' must be defined in same file: | ||
Found in t1286/b.scala and t1286/a.scala | ||
trait Foo { | ||
^ | ||
b.scala:1: error: Companions 'trait Foo' and 'object Foo' must be defined in same file: | ||
Found in t1286/a.scala and t1286/b.scala | ||
object Foo extends Foo { | ||
^ | ||
two errors found | ||
one error found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
t5956.scala:1: warning: case classes without a parameter list have been deprecated; | ||
use either case objects or case classes with `()' as parameter list. | ||
object O { case class C[T]; class C } | ||
^ | ||
t5956.scala:2: warning: case classes without a parameter list have been deprecated; | ||
use either case objects or case classes with `()' as parameter list. | ||
object T { case class C[T]; case class C } | ||
^ | ||
t5956.scala:2: warning: case classes without a parameter list have been deprecated; | ||
use either case objects or case classes with `()' as parameter list. | ||
object T { case class C[T]; case class C } | ||
^ | ||
t5956.scala:1: error: C is already defined as case class C | ||
object O { case class C[T]; class C } | ||
^ | ||
t5956.scala:2: error: C is already defined as case class C | ||
object T { case class C[T]; case class C } | ||
^ | ||
three warnings found | ||
two errors found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
object O { case class C[T]; class C } | ||
object T { case class C[T]; case class C } |