diff options
author | liu fengyun <liu@fengy.me> | 2017-02-02 16:43:21 +0100 |
---|---|---|
committer | liu fengyun <liu@fengy.me> | 2017-02-02 16:55:35 +0100 |
commit | e53ace1a2dc8d58d99508a5f058b599761a23fa2 (patch) | |
tree | 0b59bb2c2002a67bd63268bfaf488b0f21a28d78 /docs/blog/index.html | |
parent | 3e65cff0caf4c671d3cf98da347792c85a4ac2de (diff) | |
download | dotty-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 'docs/blog/index.html')
0 files changed, 0 insertions, 0 deletions