Open amandelpie opened 2 years ago
The problem with types here is that the engine chose the right raw type (Scanner extends Iterator), but didn't take into account the generic parameter -- Scanner extends Iterator<String>
doesn't suit with ??? extends Iterator<? extends Number>
It requires an additional fix in the engine, but I don't think it'll be fixed in the nearest future
Ok, @CaelmBleidd could we keep this ticket as open to remind us about possible problems? But probably it requires milestone "backlog"
Sure, we should keep it open. Later, I'll create an additional task for the bug after further investigation
Also looks like ClassWithClassRefTest
fails for Kotlin for the same reason. Check it plz
Yes, looks like it. We expect to have Class<? extends List<?>>
as a field, but got Class<java.lang.Object
instead
Description
The following snippet generates a bunch of tests including weird mock with Scanner (which implements Iterator interface) for the parameter for MUT method with type Iterator<? extends Number>
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Found tests are compiled and Scanner is not used for mocking
Actual behavior
Tests are not compiled and Scanner is used for mocking