Re: Disabling auto inferencing

2022-12-03 Thread Jochen Theodorou
On 03.12.22 15:50, Christopher Smith wrote: I believe the feature at play is "flow typing", and it surprises me that it would apply to variables declared with an explicit type. What version of Groovy are you targeting, and is this compiled statically or dynamically? The declaration type is to b

Re: Disabling auto inferencing

2022-12-03 Thread Christopher Smith
I believe the feature at play is "flow typing", and it surprises me that it would apply to variables declared with an explicit type. What version of Groovy are you targeting, and is this compiled statically or dynamically? On Sat, Dec 3, 2022, 05:04 Saravanan Palanichamy wrote: > Hello developer

Disabling auto inferencing

2022-12-03 Thread Saravanan Palanichamy
Hello developers I am developing a DSL and ran into this issue. Groovy auto infers that b is really a derived clazz and allows me to call the derived clazz method. How do I prevent this behavior from happening? Are there some settings in the DeclarationExpression or VariableExpression AST models t