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

scaladoc refuses scaladoc comments in early initializers

    Details

      Description

      This will be particularly annoying once the IDE integrates scaladoc support.

      class PreSuper extends {
        /** bar */
        val foo = new Object
      } with Object {}
      

      it shows:

      scaladoc.scala:4: error: only type definitions and concrete field definitions allowed in early object initialization section
        /** bar */
        ^
      

        Activity

        Hide
        Mirco Dotta added a comment -

        Can this be targeted for 2.11.0?

        Show
        Mirco Dotta added a comment - Can this be targeted for 2.11.0?
        Hide
        François Garillot added a comment -
        Show
        François Garillot added a comment - Fixed in https://github.com/scala/scala/pull/2922

          People

          • Assignee:
            François Garillot
            Reporter:
            Iulian Dragos
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development