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

Open
scabug opened this Issue Jan 3, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug 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
              foo
              ^
@scabug

This comment has been minimized.

Copy link
Author

scabug commented Jan 3, 2013

Imported From: https://issues.scala-lang.org/browse/SI-6910?orig=1
Reporter: @xeno-by
Affected Versions: 2.10.0

@scabug

This comment has been minimized.

Copy link
Author

scabug 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