IDE testdata: s/trait/interface
This commit is contained in:
@@ -2,6 +2,6 @@ fun foo(x: Foo) {
|
||||
x.<caret>foo { it * 2 }
|
||||
}
|
||||
|
||||
trait Foo {
|
||||
interface Foo {
|
||||
fun foo(f: (Int) -> Int)
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@ fun foo(x: Foo) {
|
||||
x foo { it * 2 }
|
||||
}
|
||||
|
||||
trait Foo {
|
||||
interface Foo {
|
||||
fun foo(f: (Int) -> Int)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
trait Foo {
|
||||
interface Foo {
|
||||
fun foo(a: Int, b: Int)
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@ fun foo(x: Foo) {
|
||||
x.<caret>foo(bar = x)
|
||||
}
|
||||
|
||||
trait Foo {
|
||||
interface Foo {
|
||||
fun foo(baz: Int = 0, bar: Foo? = null)
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ fun foo(x: Foo) {
|
||||
x.<caret>foo(1) { it * 2 }
|
||||
}
|
||||
|
||||
trait Foo {
|
||||
interface Foo {
|
||||
fun foo(a: Int, f: (Int) -> Int)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user