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