compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
fun foo()
|
||||
val bar: Int
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
fun simple() {
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A {
|
||||
interface A {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T : Comparable<T>> {
|
||||
interface A<T : Comparable<T>> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T : Number> {
|
||||
interface A<T : Number> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
trait B : A<Int>
|
||||
interface B : A<Int>
|
||||
|
||||
abstract class C : B
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package test
|
||||
class E1: Exception()
|
||||
class E2: Exception()
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
throws()
|
||||
fun none()
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package test
|
||||
|
||||
class E1: Exception()
|
||||
|
||||
trait Base<T> {
|
||||
interface Base<T> {
|
||||
throws(E1::class)
|
||||
fun one(t: T) {}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package test
|
||||
class E1: Exception()
|
||||
class E2: Exception()
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
throws()
|
||||
fun none() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user