Scala Programming Language
  1. Scala Programming Language
  2. SI-6952

Un-positioned error message for language features

    Details

      Description

      The following program shows an error, but it's not attached to the position where this language feature is used. It's quite hard to locate them in a large code base.

      See issue in the IDE tracker: https://www.assembla.com/spaces/scala-ide/tickets/1001409#/activity/ticket:

      Source code
      class Dyna extends Dynamic {}
      
      Output
      error: extension of type scala.Dynamic needs to be enabled
      by making the implicit value language.dynamics visible.
      This can be achieved by adding the import clause 'import scala.language.dynamics'
      or by setting the compiler option -language:dynamics.
      See the Scala docs for value scala.language.dynamics for a discussion
      why the feature needs to be explicitly enabled.
      one error found
      

        Activity

        Hide
        Adriaan Moors added a comment -

        Hi Nada, could you have a look in time for 2.10.1-RC1?

        Show
        Adriaan Moors added a comment - Hi Nada, could you have a look in time for 2.10.1-RC1?
        Hide
        Nada Amin added a comment -

        Sure.

        Show
        Nada Amin added a comment - Sure.
        Show
        Jason Zaugg added a comment - https://github.com/scala/scala/pull/1907

          People

          • Assignee:
            Nada Amin
            Reporter:
            Iulian Dragos
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development