Files
kotlin-fork/compiler/testData/diagnostics/tests/subtyping/kt-1457.kt
T
Andrey Breslav 5eaa5b396b Removing usages of tuples from test data
(KT-2358 Drop tuples)
 #KT-2358 In progress
2012-09-18 20:27:09 +04:00

10 lines
188 B
Kotlin

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