SOE with recursive type parameter dependencies

This commit is contained in:
Anna Kozlova
2016-03-15 13:31:13 +01:00
parent 67de6a752d
commit 65ebda0fff
3 changed files with 20 additions and 1 deletions
@@ -0,0 +1,6 @@
class Test {
private <<error descr="Cyclic inheritance involving 'S'"></error>S extends K, K extends S> S b(S s) {
if (true) return b <error descr="'b(S)' in 'Test' cannot be applied to '()'">()</error>;
<error descr="Missing return statement">}</error>
}