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

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

macros cannot report multiple errors per position #6910

scabug opened this issue Jan 3, 2013 · 2 comments
Labels
Milestone

Comments

@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
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
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants