GROOVY-9064 [1] has further discussion on this topic.  It is also the cause for 
GROOVY-10120 [2] for us.  The interface type carries proper generics info but 
the override method on the implementation class has none (for some odd reason).

[1] https://issues.apache.org/jira/browse/GROOVY-9064
[2] https://issues.apache.org/jira/browse/GROOVY-10120

-----Original Message-----
From: Jochen Theodorou <blackd...@gmx.org> 
Sent: Monday, December 5, 2022 2:18 AM
To: dev@groovy.apache.org
Subject: [EXT] Re: Disabling auto inferencing

External Email: Use caution with links and attachments.



Am 04.12.22 um 16:34 schrieb Saravanan Palanichamy:
> Thanks Jochen and Christopher for helping clarify behaviour. So if I 
> wanted to make sure declaration and not flow type is honored, the 
> quickest way is to make sure flow type matches declaration by casting 
> it? Are there other ways inside the compiler to fix this (some options 
> or some indications in the variable declaration statement itself) (I 
> looked and didnt find anything, but thought I'd ask)?

the nodes have meta data, which usually also contains static type information 
such as the flow type. You would have to make changes here.
What exactly you have to look for and change I cannot say without a deep look 
into the code myself. Eric Miles would be a good address for this though.

bye Jochen

Reply via email to