Description
Consider the following:
@TypeChecked class C { static String typeName = this.getName() // instance method from Class }
This emits error "Non-static method Class#getName cannot be called from a static context".
Attachments
Issue Links
- is related to
-
GROOVY-10820 SC: static choice of Class vs Object extension for Type dot name
- Closed