summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-invalidimpl-i.check
Commit message (Collapse)AuthorAgeFilesLines
* refactors macro testsEugene Burmako2013-05-281-4/+0
| | | | | | | putting in a nutshell, this patch: * condenses some macro-XXX-a/b/c/... bundles * renames some tests to prepare for other macro flavors * introduces some additional tests
* Normalized line endings.Paul Phillips2012-09-201-4/+4
| | | | | | This brings all the files into line with the .gitattributes settings, which should henceforth be automatically maintained by git.
* macro implementations must be publicEugene Burmako2012-08-131-0/+4
The immediate motivator for this change was the desire to keep things simple during macro expansion. Here's the story. When you expand a macro, you need to reflectively load a macro implementation method and invoke it. However private methods in Scala can sometime have their names mangled, so the reflector has to check multiple variants of the same name (the normal one and the mangled one). The problem is that since the previous commit we don't have an access to a symbol of the macro impl, hence we cannot just use `impl.expandedName` like we did before. Sure I could duplicate the logic of expandedName, but I have a better suggestion. Let's prohibit non-public macro implementations. This doesn't seem to hurt, and it lets us avoid extra bit of complexity in Macros.scala. If this measure turns out to be a hassle during the trial period of macros, non-public macros can always be allowed. In fact, we can even have this feature back for free when we migrate from Java reflection to Scala reflection for invoking macro implementations (because Scala reflection knows how to account for mangled private names). But that's the 2.10.x business.