diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-13 02:34:14 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-13 04:06:06 +0100 |
commit | c85435d91e26b97e22470af74138b4e8d4c3ae41 (patch) | |
tree | 9f2d9e7b2dda559db2faadf4deb20aa07f2c858f /test/files/scalacheck/quasiquotes/TermDeconstructionProps.scala | |
parent | 00067482917cbe7ac337550e1f565fea966c2d78 (diff) | |
download | scala-c85435d91e26b97e22470af74138b4e8d4c3ae41.tar.gz scala-c85435d91e26b97e22470af74138b4e8d4c3ae41.tar.bz2 scala-c85435d91e26b97e22470af74138b4e8d4c3ae41.zip |
SI-8270 unconfuses bundles and vanilla macros
This fixes a mistake in macro impl ref typechecking that used to have
an heuristic to figure out whether it looks at a bundle method ref or at
a vanilla object method ref. Under some circumstances the heuristic could
fail, and then the macro engine would reject perfectly good macro impls.
Now every macro impl ref is typechecked twice - once as a bundle method ref
and once as a vanilla object method ref. Results are then analyzed,
checked against ambiguities (which are now correctly reported instead
of incorrectly prioritizing towards bundles) and delivered to the macro
engine.
The only heuristic left in place is the one that's used to report errors.
If both bundle and vanilla typechecks fail, then if a bundle candidate
looks sufficiently similar to a bundle, a bundle typecheck error is reported
providing some common bundle definition hints.
Diffstat (limited to 'test/files/scalacheck/quasiquotes/TermDeconstructionProps.scala')
0 files changed, 0 insertions, 0 deletions