compiler testdata: s/trait/interface

This commit is contained in:
Dmitry Jemerov
2015-05-12 12:38:49 +02:00
parent a5ed5d4269
commit 4bdf598bfe
803 changed files with 1456 additions and 1456 deletions
@@ -1,6 +1,6 @@
// !DIAGNOSTICS: -BASE_WITH_NULLABLE_UPPER_BOUND
// !CHECK_TYPE
trait A<T>
interface A<T>
fun <T> foo(a: A<T>, aN: A<T?>): T = throw Exception("$a $aN")
@@ -2,9 +2,9 @@
package kt7351
trait Node
interface Node
trait Source<T> {
interface Source<T> {
fun f() : T
}
fun <T, S : Source<T>> S.woo() : T = this.f()
@@ -1,9 +1,9 @@
// !CHECK_TYPE
trait A<T>
interface A<T>
trait In<in T>
interface In<in T>
trait Out<out T>
interface Out<out T>
fun <T: Any> doT(t: T?): T = throw Exception("$t")
fun <T: Any> doOut(o: Out<T?>): T { throw Exception("$o") }
@@ -1,8 +1,8 @@
// !DIAGNOSTICS: -BASE_WITH_NULLABLE_UPPER_BOUND
// !CHECK_TYPE
trait A<T>
interface A<T>
trait Out<out T>
interface Out<out T>
fun <T> foo(a: A<T>, o: Out<T?>): T = throw Exception("$a $o")
@@ -1,8 +1,8 @@
// !DIAGNOSTICS: -BASE_WITH_NULLABLE_UPPER_BOUND
// !CHECK_TYPE
trait A<T>
interface A<T>
trait In<in T>
interface In<in T>
fun <T> foo(a: A<T>, i: In<T>): T = throw Exception("$a $i")