cast conversion: substitute type parameter bounds for recursive types (IDEA-136527)

This commit is contained in:
Anna Kozlova
2015-02-20 19:46:46 +01:00
parent 4a9d8ced61
commit 939c490895
3 changed files with 12 additions and 0 deletions
@@ -0,0 +1,7 @@
import java.util.List;
abstract class Test implements List<Test> {
private <T extends List<T>> T foo() {
return (T)this;
}
}