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

SKIP undeclared variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.0.2
    • None
    • groovy-jdk
    • 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

            melix Cédric Champeau
            mgkimsal Michael Kimsal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: