IDE testdata: s/trait/interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
trait First {
|
||||
interface First {
|
||||
fun foo123()
|
||||
fun foo12_()
|
||||
fun foo1_3()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
trait First
|
||||
interface First
|
||||
|
||||
trait Second : First {
|
||||
interface Second : First {
|
||||
fun foo()
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
trait Third: Second
|
||||
interface Third: Second
|
||||
|
||||
// WITH_INHERITED
|
||||
@@ -1,4 +1,4 @@
|
||||
trait Some {
|
||||
interface Some {
|
||||
fun first()
|
||||
fun second()
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait TA {
|
||||
interface TA {
|
||||
fun some()
|
||||
val a: Int
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
trait First<T> {
|
||||
interface First<T> {
|
||||
fun foo(a: T)
|
||||
}
|
||||
|
||||
trait Second<U> : First<Int> {
|
||||
interface Second<U> : First<Int> {
|
||||
val a: U
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
trait Third: Second<String>
|
||||
interface Third: Second<String>
|
||||
|
||||
// Original type names are shown in members, behaviour is same to Java.
|
||||
|
||||
|
||||
@@ -42,8 +42,8 @@ enum class Enum1 {
|
||||
SECOND
|
||||
}
|
||||
|
||||
trait Trait
|
||||
trait Trait1: Trait
|
||||
interface Trait
|
||||
interface Trait1: Trait
|
||||
|
||||
class TestWithWhere<T> where T: Any?
|
||||
fun <T> testWithWhere() where T: String {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait A
|
||||
interface A
|
||||
open class B
|
||||
class Some: B(), A
|
||||
class Other: A
|
||||
Reference in New Issue
Block a user