compiler testdata: s/trait/interface
This commit is contained in:
+2
-2
@@ -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) {}
|
||||
|
||||
+4
-4
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user