Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309093

Underscore with brackets

XMLWordPrintable

    • b24
    • b26

      The following snippet compiles, while the grammar prohibits it:

         for (int _[] : new int[][]{new int[]{1}, new int[]{2}}) { }

            abimpoudis Angelos Bimpoudis
            abimpoudis Angelos Bimpoudis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: