Add regression tests for obsolete issues

#KT-1291 Obsolete
 #KT-2895 Obsolete
 #KT-3060 Obsolete
 #KT-3298 Obsolete
 #KT-3613 Obsolete
 #KT-3862 Obsolete
This commit is contained in:
Alexander Udalov
2014-02-13 04:41:38 +04:00
parent 320c23494f
commit 8b918ef1aa
7 changed files with 119 additions and 0 deletions
@@ -0,0 +1,18 @@
open class A<T> {
open fun foo(a: T): Int = 2
}
trait B<T> : A<T> {
override fun foo(a: T): Int = 1
}
class D : B<Int>, A<Int>() {
fun boo(): Int {
return super<B>.foo(1)
}
}
fun box(): String {
if (D().boo() != 1) return "Fail"
return "OK"
}