Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1420

disallow top-level assignments in "assert" analogous to "if"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.0
    • parser
    • None

    Description

      we disallowed top-level assignments inside 'if' like
      if(x=1)
      but it is still possible to do in assert
      assert x=1
      which deserves the same protection.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: