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

STC: missing error for map*.key assignment

    XMLWordPrintableJSON

Details

    Description

      Consider the following:

      @groovy.transform.TypeChecked
      void test(Map map) {
        map*.key = null
      }
      

      "key" is a read-only property of Map.Entry; however this is caught at run-time rather than compile-time.

      Attachments

        Activity

          People

            emilles Eric Milles
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: