Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macros cannot report multiple errors per position #6910

scabug opened this issue Jan 3, 2013 · 2 comments


Copy link

commented Jan 3, 2013

scala> def impl(c: Context) = { c.error(c.enclosingPosition, "foo"); c.error(c.enclosingPosition, "bar"); c.literalUnit }
impl: (c: scala.reflect.macros.Context)c.Expr[Unit]

scala> def foo = macro impl
defined term macro foo: Unit

scala> foo
<console>:32: error: foo

This comment has been minimized.

Copy link

commented Jan 3, 2013

Imported From:
Reporter: @xeno-by
Affected Versions: 2.10.0


This comment has been minimized.

Copy link

commented Jan 4, 2013

@paulp said:
This is basically a duplicate of #6120, except that you apparently want to issue multiple errors and not just warnings. But re: the subject line, nothing can issue multiple errors (or warnings) at the same positions - not just macros.

@scabug scabug added the macros label Apr 7, 2017

@scabug scabug added this to the Backlog milestone Apr 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.