compiler testdata: s/trait/interface
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
trait B {
|
||||
interface B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
trait D {
|
||||
interface D {
|
||||
val x: Int
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait B {
|
||||
interface B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ open class C {
|
||||
val x = 1
|
||||
}
|
||||
|
||||
trait Tr : <!TRAIT_WITH_SUPERCLASS!>C<!> {
|
||||
interface Tr : <!TRAIT_WITH_SUPERCLASS!>C<!> {
|
||||
<!ACCIDENTAL_OVERRIDE!>fun getX()<!> = 1
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait T {
|
||||
interface T {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
trait T {
|
||||
interface T {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
trait C : T {
|
||||
interface C : T {
|
||||
val x: Int
|
||||
<!ACCIDENTAL_OVERRIDE!>get()<!> = 1
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait T {
|
||||
interface T {
|
||||
fun getX(): Int
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait T {
|
||||
interface T {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
trait T {
|
||||
interface T {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
trait C : T {
|
||||
interface C : T {
|
||||
<!ACCIDENTAL_OVERRIDE!>fun getX()<!> = 1
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait T {
|
||||
interface T {
|
||||
val x: Int
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user