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,4 +1,4 @@
trait T {
interface T {
fun foo() {}
fun buzz() {}
fun buzz1(i : Int) {}
@@ -6,7 +6,7 @@ fun <T> java.util.Enumeration<T>.iterator() = object: Iterator<T> {
override fun next() = nextElement()
}
trait MyIterator<T> {
interface MyIterator<T> {
fun hasNext() : Boolean
@@ -1,4 +1,4 @@
trait Tr
interface Tr
class A { companion object }
class B { companion object : Tr }
@@ -1,6 +1,6 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
trait JPAEntityClass<D> {
interface JPAEntityClass<D> {
fun <T> T.findByName(s: String): D {null!!}
}
@@ -4,7 +4,7 @@ package kt1875
fun f(a : Int?, b : Int.(Int)->Int) = a?.b(1) //unnecessary safe call warning
trait T {
interface T {
val f : ((i: Int) -> Unit)?
}
@@ -23,7 +23,7 @@ fun test3(s: String?) {
s.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>foo<!>("a")
}
trait A
interface A
fun <T: A> T.c() {}
fun test4() {