compiler testdata: s/trait/interface
This commit is contained in:
@@ -9,7 +9,7 @@ public interface G<TG> {
|
||||
|
||||
package p;
|
||||
|
||||
public trait A<TA> {
|
||||
public interface A<TA> {
|
||||
fun foo(p: A<TA>)
|
||||
}
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@ public interface I extends Boo {
|
||||
}
|
||||
|
||||
// FILE: Baz.kt
|
||||
public trait Foo {
|
||||
public interface Foo {
|
||||
companion object {
|
||||
public val EMPTY: Foo = object : Foo{}
|
||||
}
|
||||
}
|
||||
|
||||
trait Boo
|
||||
interface Boo
|
||||
|
||||
public class Baz : Bar.I
|
||||
@@ -1,6 +1,6 @@
|
||||
// FILE: AC.kt
|
||||
|
||||
trait A {
|
||||
interface A {
|
||||
val a: Int
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ public interface Test {
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
trait KTrait : Test {
|
||||
interface KTrait : Test {
|
||||
fun ktest() {
|
||||
<!TRAIT_CANT_CALL_DEFAULT_METHOD_VIA_SUPER!>super.test()<!>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user