360d67410d
See the class at org/jmock/Expectations public <T> T with(Matcher<T> matcher); public boolean with(Matcher<Boolean> matcher); When we extending such class it we start assuming that fake generic override overrides both of the overridden that is wrong from POV of Java and it fails at FIR ultimate build NB: It's hard to write a test because such Expectation-like class is impossible to write in pure Java
7 lines
163 B
Java
Vendored
7 lines
163 B
Java
Vendored
package test;
|
|
import java.util.List;
|
|
public class A {
|
|
public <T> T foo(List<T> t) { return null; }
|
|
public boolean foo(List<Boolean> t) { return false; }
|
|
}
|