search for method implementations with correct substitutor

This commit is contained in:
Anna Kozlova
2015-02-20 22:03:19 +01:00
parent 9fc640a8f0
commit 81ed04a7dc
3 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
// "Implement method 'foo'" "true"
abstract class A<T> {
abstract String foo(T t);
}
class B extends A<String> {
@Override
String foo(String s1) {
return null;
}
}
class ABC extends A<Integer> {
@Override
String foo(Integer integer) {
return null;
}
}

View File

@@ -0,0 +1,15 @@
// "Implement method 'foo'" "true"
abstract class A<T> {
abstract String f<caret>oo(T t);
}
class B extends A<String> {
@Override
String foo(String s1) {
return null;
}
}
class ABC extends A<Integer> {}