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

Semicolon is not inferred after a XML node sequence literal

    Details

      Description

      scalac reports error in the following code;

      object Obj {
        val s1 = <a/><b/>
        println("hi")
      }
       
      value println is not a member of scala.xml.NodeBuffer possible cause: maybe a semicolon is missing before `value println'?
      

      When <a/></b> is either replaced with <a/> alone or enclosed in parentheses or curly braces, code is compiled without error. Entering the semicolon as suggested also allows compilation to proceed.

        Attachments

          Activity

            People

            • Assignee:
              apm A. P. Marki
              Reporter:
              rkrzewski Rafał Krzewski
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: