compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package test
|
||||
|
||||
trait X {
|
||||
interface X {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
trait Y : X {
|
||||
interface Y : X {
|
||||
}
|
||||
|
||||
class B(val a: X) : X by a, Y {
|
||||
|
||||
+3
-3
@@ -1,14 +1,14 @@
|
||||
package test
|
||||
|
||||
public trait Super1 {
|
||||
public interface Super1 {
|
||||
public fun foo(): CharSequence
|
||||
private fun bar(): String
|
||||
}
|
||||
|
||||
public trait Super2 {
|
||||
public interface Super2 {
|
||||
private fun foo(): String
|
||||
public fun bar(): CharSequence
|
||||
}
|
||||
|
||||
public trait Sub: Super1, Super2 {
|
||||
public interface Sub: Super1, Super2 {
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package test
|
||||
|
||||
public trait Super1 {
|
||||
public interface Super1 {
|
||||
val x: String
|
||||
var y: String
|
||||
}
|
||||
|
||||
public trait Super2 {
|
||||
public interface Super2 {
|
||||
var x: String
|
||||
val y: String
|
||||
}
|
||||
|
||||
public trait Sub: Super1, Super2 {
|
||||
public interface Sub: Super1, Super2 {
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package test
|
||||
|
||||
public trait Super1 {
|
||||
public interface Super1 {
|
||||
val x: String
|
||||
val y: CharSequence
|
||||
}
|
||||
|
||||
public trait Super2 {
|
||||
public interface Super2 {
|
||||
val x: CharSequence
|
||||
val y: String
|
||||
}
|
||||
|
||||
public trait Sub: Super1, Super2 {
|
||||
public interface Sub: Super1, Super2 {
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ abstract class A {
|
||||
abstract fun foo()
|
||||
}
|
||||
|
||||
trait X : A {
|
||||
interface X : A {
|
||||
fun bar() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public trait TaskObject {
|
||||
public interface TaskObject {
|
||||
fun foo(r: Runnable)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
public trait Runnable {
|
||||
public interface Runnable {
|
||||
fun run()
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A {
|
||||
interface A {
|
||||
fun foo() {}
|
||||
|
||||
fun bar() {}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
trait Foo
|
||||
trait Bar
|
||||
interface Foo
|
||||
interface Bar
|
||||
|
||||
fun <T> foo(): Unit
|
||||
where T : Foo, T : Bar
|
||||
|
||||
Reference in New Issue
Block a user