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 example
trait T {
interface T {
fun foo() {}
}
open class C() {
@@ -42,7 +42,7 @@ class A<E>() : C(), T {
}
}
trait G<T> {
interface G<T> {
fun foo() {}
}
@@ -2,7 +2,7 @@ open class A {
open fun foo() {}
}
trait ATrait : <!TRAIT_WITH_SUPERCLASS!>A<!> {
interface ATrait : <!TRAIT_WITH_SUPERCLASS!>A<!> {
override fun foo() {
<!SUPERCLASS_NOT_ACCESSIBLE_FROM_TRAIT!>super<A><!>.foo()
@@ -1,4 +1,4 @@
trait Base {
interface Base {
fun foo()
}
val String.test: Base = <!EXTENSION_PROPERTY_WITH_BACKING_FIELD!>object: Base<!> {
@@ -1,12 +1,12 @@
// FILE: test.kt
public trait Test {
public interface Test {
fun test(): String {
return "123";
}
}
trait KTrait : Test {
interface KTrait : Test {
fun ktest() {
super.test()