Can not show suggestion with @Field on Groovy

Answered

Hi guys,

When I use @Field for global variables on Groovy.

Intellij can not show any suggestions such as class properties or defined method

Position.Groovy

class Position {

def Left
def Right
def Middle
def methodMissing(String name, args) {
return 1
// implementation of dynamic method synthesis
}
}

Main.groovy

import groovy.transform.Field

@Field pos = new Position()


def main () {
pos.methodMissing(name)
}
0
1 comment

Please sign in to leave a comment.