compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package override
|
||||
|
||||
trait T {
|
||||
interface T {
|
||||
fun foo()
|
||||
val v : Int
|
||||
}
|
||||
@@ -21,7 +21,7 @@ class Br2(t : T) : Br1(t) {
|
||||
|
||||
}
|
||||
|
||||
trait G<T> {
|
||||
interface G<T> {
|
||||
fun foo(t : T) : T
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): Int
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ open class Foo() {
|
||||
|
||||
class Barrr() : <!DELEGATION_NOT_TO_TRAIT!>Foo<!> by Foo() {}
|
||||
|
||||
trait T {}
|
||||
interface T {}
|
||||
|
||||
class Br(t : T) : T by t {}
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS
|
||||
trait One {
|
||||
interface One {
|
||||
public fun foo(): Any?
|
||||
}
|
||||
trait Two {
|
||||
interface Two {
|
||||
public fun foo(): String?
|
||||
}
|
||||
|
||||
trait Three {
|
||||
interface Three {
|
||||
public fun foo(): String
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait A {
|
||||
interface A {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
// !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS
|
||||
trait One {
|
||||
interface One {
|
||||
public open fun foo() : Int
|
||||
private fun boo() = 10
|
||||
}
|
||||
trait Two {
|
||||
interface Two {
|
||||
public open fun foo() : Int
|
||||
}
|
||||
|
||||
trait OneImpl : One {
|
||||
interface OneImpl : One {
|
||||
public override fun foo() = 1
|
||||
}
|
||||
trait TwoImpl : Two {
|
||||
interface TwoImpl : Two {
|
||||
public override fun foo() = 2
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
trait A {
|
||||
interface A {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
trait B : A {}
|
||||
interface B : A {}
|
||||
|
||||
class C(b : B) : B by b {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user