IDE testdata: s/trait/interface
This commit is contained in:
@@ -2,11 +2,11 @@ open class <caret>A
|
||||
|
||||
open class B: A()
|
||||
|
||||
trait T: A
|
||||
interface T: A
|
||||
|
||||
open class C: B()
|
||||
|
||||
trait U: T
|
||||
interface U: T
|
||||
|
||||
object O1: A()
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
trait <caret>A
|
||||
interface <caret>A
|
||||
|
||||
open class B: A
|
||||
|
||||
trait T: A
|
||||
interface T: A
|
||||
|
||||
open class C: B()
|
||||
|
||||
trait U: T
|
||||
interface U: T
|
||||
|
||||
object O1: A
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait <caret>A
|
||||
interface <caret>A
|
||||
|
||||
class B: A
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait <caret>A
|
||||
interface <caret>A
|
||||
|
||||
object B: A
|
||||
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
open class <caret>A
|
||||
|
||||
trait B: A()
|
||||
interface B: A()
|
||||
|
||||
class MyClass(a: A = run { trait X: A(); object: A() {} }) {
|
||||
inner trait G: A() {}
|
||||
class MyClass(a: A = run { interface X: A(); object: A() {} }) {
|
||||
inner interface G: A() {}
|
||||
|
||||
init {
|
||||
trait C: A()
|
||||
interface C: A()
|
||||
}
|
||||
|
||||
fun foo(a: A = run { trait X: A(); object: A() {} }) {
|
||||
trait D: A()
|
||||
fun foo(a: A = run { interface X: A(); object: A() {} }) {
|
||||
interface D: A()
|
||||
|
||||
val t = object {
|
||||
inner trait F: A()
|
||||
inner interface F: A()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val bar: Int
|
||||
get() {
|
||||
trait E: A()
|
||||
interface E: A()
|
||||
|
||||
return 0
|
||||
}
|
||||
@@ -1,26 +1,26 @@
|
||||
trait <caret>A
|
||||
interface <caret>A
|
||||
|
||||
trait B: A
|
||||
interface B: A
|
||||
|
||||
class MyClass(a: A = run { trait X: A; object: A {} }) {
|
||||
inner trait G: A {}
|
||||
class MyClass(a: A = run { interface X: A; object: A {} }) {
|
||||
inner interface G: A {}
|
||||
|
||||
init {
|
||||
trait C: A
|
||||
interface C: A
|
||||
}
|
||||
|
||||
fun foo(a: A = run { trait X: A; object: A {} }) {
|
||||
trait D: A
|
||||
fun foo(a: A = run { interface X: A; object: A {} }) {
|
||||
interface D: A
|
||||
|
||||
val t = object {
|
||||
inner trait F: A
|
||||
inner interface F: A
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val bar: Int
|
||||
get() {
|
||||
trait E: A
|
||||
interface E: A
|
||||
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user