aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotc/comptest.scala
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2017-02-02 16:43:21 +0100
committerliu fengyun <liu@fengy.me>2017-02-02 16:55:35 +0100
commite53ace1a2dc8d58d99508a5f058b599761a23fa2 (patch)
tree0b59bb2c2002a67bd63268bfaf488b0f21a28d78 /compiler/test/dotc/comptest.scala
parent3e65cff0caf4c671d3cf98da347792c85a4ac2de (diff)
downloaddotty-e53ace1a2dc8d58d99508a5f058b599761a23fa2.tar.gz
dotty-e53ace1a2dc8d58d99508a5f058b599761a23fa2.tar.bz2
dotty-e53ace1a2dc8d58d99508a5f058b599761a23fa2.zip
Weaken assumption in mergeCompanionDefs
Previously `mergeCompanionDefs` assumes that if the attachment of class `Foo` is as follows: x :: y :: tdef @ TypeDef(_, templ) Then the `tdef` must be `Foo$`. When there are multiple pre-typer transforms, this is not necessarily true. For example, an annotation macro expansion may expand a non-case class `Foo` to `class Foo; object FooA`. We need to check the name of `tdef` to be equal to `Foo$`.
Diffstat (limited to 'compiler/test/dotc/comptest.scala')
0 files changed, 0 insertions, 0 deletions