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,8 +1,8 @@
trait A {
interface A {
fun b(a : Int)
}
trait B : A {}
interface B : A {}
class C1 : A {
override fun b(<!PARAMETER_NAME_CHANGED_ON_OVERRIDE!>b<!> : Int) {}
@@ -1,14 +1,14 @@
trait C {
interface C {
fun foo(a : Int)
}
trait D {
interface D {
fun foo(b : Int)
}
<!DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES!>trait E<!> : C, D
<!DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES!>interface E<!> : C, D
trait F : C, D {
interface F : C, D {
override fun foo(<!PARAMETER_NAME_CHANGED_ON_OVERRIDE!>a<!> : Int) {
throw UnsupportedOperationException()
}
@@ -1,6 +1,6 @@
// FILE: Super.kt
trait Super {
interface Super {
fun foo(superName: Int)
}
@@ -1,6 +1,6 @@
// FILE: KSuper.kt
trait KSuper {
interface KSuper {
fun foo(ksuperName: Int)
}
@@ -6,7 +6,7 @@ interface JavaInterface {
// FILE: kotlin.kt
trait KotlinTrait {
interface KotlinTrait {
public fun foo(someOtherName: Int) {}
}
@@ -11,7 +11,7 @@ class SimpleSubclass : JavaInterface {
}
trait SubtraitWithFakeOverride : JavaInterface
interface SubtraitWithFakeOverride : JavaInterface
class Subclass : SubtraitWithFakeOverride {
override fun foo(otherKotlinName: Int) {}