summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-bundle-wrongcontext-a.check
Commit message (Collapse)AuthorAgeFilesLines
* more helpful bundle error messagesEugene Burmako2014-02-211-1/+1
| | | | | | | | | | | | | At the moment, bundle selection mechanism is pretty picky. If a candidate bundle's parameter isn't either blackbox.Context, whitebox.Context or PrefixType refinement thereof, then it's not a bundle and the user will get a generic error. However we can be a bit more helpful and admit classes that are almost like bundles (looksLikeMacroBundleType), have them fail isMacroBundleType, and then emit a much prettier error message to the user that would tell them that bundles must be monomorphic and their sole parameter should not just be any subtype of blackbox.Context or whitebox.Context.
* bundles now reject invalid context typesEugene Burmako2014-02-211-0/+4
Vanilla macros only allow blackbox.Context, whitebox.Context and PrefixType refinements thereof. Bundles should behave in the same way.