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 @@
package a
trait A
interface A
fun doList(l: List<Int>) = l
fun doInt(i: Int) = i
fun getList(): List<Int>? = null
@@ -1,6 +1,6 @@
package a
trait A
interface A
fun <T>id(t: T): T = t
fun doList(l: List<Int>) = l
@@ -1,11 +1,11 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
trait A
trait B
interface A
interface B
trait C: A, B
trait D: A, B
trait E: A, B
interface C: A, B
interface D: A, B
interface E: A, B
fun foo(c: C?, d: D?, e: E?) {
val a: A? = <!TYPE_MISMATCH!>c ?: d<!> ?: e