mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
cast conversion: substitute type parameter bounds for recursive types (IDEA-136527)
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
import java.util.List;
|
||||
|
||||
abstract class Test implements List<Test> {
|
||||
private <T extends List<T>> T foo() {
|
||||
return (T)this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user