Skip to content

Fix type inferencing and syntax highlighting for constructor and static metaclass properties #1306

@eric-milles

Description

@eric-milles

Consider the following:

String.metaClass.constructor << { a, b, c ->
  "$a $b $c".toString()
}
String.getMetaClass().static.method = { ->
  println 'method called'
}

print new String('x','y','z')
String.method()

The special metaclass properties "constructor" and "static" don't provide any feedback that they are recognized.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions