-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: template matching ignores casts #3028
Conversation
Thanks a lot Egor for the bug reproduction. Pavel @pvojtechovsky, we hope you're doing well. Any chance to have a look at this bug? |
I added a possible fix. |
Thanks Egor, I like this solution. We just need to document it. Could you add the explanation in the corresponding Markdown file? |
added documentation, will merge after CI. |
thanks @Egor18 |
Fix #3026.
I'm not so familiar with template matching in Spoon yet, but it looks like a bug to me.
I think matcher
f(_x_.S());
should matchf(new X())
as well as(Y) f(new X())
, isn't it?