Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-6910

macros cannot report multiple errors per position

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.10.0
    • Fix Version/s: Backlog
    • Component/s: Macros
    • Labels:
      None

      Description

      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
                    ^
      

        Attachments

          Activity

            People

            • Assignee:
              burmako Eugene Burmako
              Reporter:
              burmako Eugene Burmako
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: