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

SKIP undeclared variable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Environment:
      OSX Java 1.6 Snow Leopard

      Description

      import groovy.transform.CompileStatic
      @CompileStatic
      class demo {
          @CompileStatic(SKIP)
          def fib_dynamic(i) {
              i < 2 ? 1 : fib_dynamic(i - 2) + fib_dynamic(i - 1)
          }
      }
      

      [Static type checking] - The variable [SKIP] is undeclared.
      at line: 5, column: 20

      I'm not sure what else I'd need to do - everything I find on skipping a method shows this as the way to do it, but SKIP is 'undeclared'. ?

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              mgkimsal Michael Kimsal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: