KT-1457 Subtyping doesn't work when type parameter is used indirectly in supertype declaration

This commit is contained in:
Andrey Breslav
2012-02-27 15:34:57 +04:00
parent 2e0d00c45b
commit 963557f3c8
3 changed files with 79 additions and 2 deletions
@@ -0,0 +1,8 @@
// +JDK
import java.util.ArrayList
class MyListOfPairs<T> : ArrayList<#(T, T)>() { }
fun test() {
MyListOfPairs<Int> : ArrayList<#(Int, Int)>
}