Files
kotlin-fork/compiler/testData/diagnostics/tests/subtyping/kt-1457.kt
T
2015-04-29 16:33:24 +02:00

12 lines
217 B
Kotlin
Vendored

// !CHECK_TYPE
import java.util.ArrayList
class Pair<A, B>(val a: A, val b: B)
class MyListOfPairs<T> : ArrayList<Pair<T, T>>() { }
fun test() {
checkSubtype<ArrayList<Pair<Int, Int>>>(MyListOfPairs<Int>())
}