Minor: Fix test data for ConvertFunctionTypeParameterToReceiverIntention
This commit is contained in:
+1
-1
@@ -19,5 +19,5 @@ fun baz(f: (Int, Boolean) -> String) {
|
||||
val f1 = lambda()
|
||||
foo { i -> f1(i, this) }
|
||||
|
||||
foo { i -> "${i + 1} ${this}" }
|
||||
foo { i -> "${i + 1} $this" }
|
||||
}
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
open class Foo(f: Boolean.(Int<caret>) -> String) {
|
||||
constructor(a: Int, f: (Int, Boolean) -> String) : this({ i -> f(i, this) })
|
||||
constructor(a: Int) : this({ i -> (::g)(i, this) })
|
||||
constructor(a: Int, b: Int, c: Int) : this({ i -> "${i + 1} ${this}" })
|
||||
constructor(a: Int, b: Int, c: Int) : this({ i -> "${i + 1} $this" })
|
||||
|
||||
init {
|
||||
false.f(1)
|
||||
@@ -25,7 +25,7 @@ fun baz(f: (Int, Boolean) -> String) {
|
||||
val f1 = lambda()
|
||||
Foo { i -> f1(i, this) }
|
||||
|
||||
Foo { i -> "${i + 1} ${this}" }
|
||||
Foo { i -> "${i + 1} $this" }
|
||||
}
|
||||
|
||||
class Baz1(f: (Int, Boolean) -> String) : Foo({ i -> f(i, this) })
|
||||
@@ -34,10 +34,10 @@ class Baz2 : Foo({ i -> (::g)(i, this) })
|
||||
val f1 = lambda()
|
||||
|
||||
class Baz3 : Foo({ i -> f1(i, this) })
|
||||
class Baz4 : Foo({ i -> "${i + 1} ${this}" })
|
||||
class Baz4 : Foo({ i -> "${i + 1} $this" })
|
||||
|
||||
class Baz5 : Foo {
|
||||
constructor(f: (Int, Boolean) -> String) : super({ i -> f(i, this) })
|
||||
constructor(a: Int) : super({ i -> (::g)(i, this) })
|
||||
constructor(a: Int, b: Int, c: Int) : super({ i -> "${i + 1} ${this}" })
|
||||
constructor(a: Int, b: Int, c: Int) : super({ i -> "${i + 1} $this" })
|
||||
}
|
||||
+4
-4
@@ -6,7 +6,7 @@ open class Foo {
|
||||
|
||||
constructor(a: Int, f: (Int, Boolean) -> String) : this({ i -> f(i, this) })
|
||||
constructor(a: Int) : this({ i -> (::g)(i, this) })
|
||||
constructor(a: Int, b: Int, c: Int) : this({ i -> "${i + 1} ${this}" })
|
||||
constructor(a: Int, b: Int, c: Int) : this({ i -> "${i + 1} $this" })
|
||||
}
|
||||
|
||||
fun bar(f: (Int, Boolean) -> String) {
|
||||
@@ -25,7 +25,7 @@ fun baz(f: (Int, Boolean) -> String) {
|
||||
val f1 = lambda()
|
||||
Foo { i -> f1(i, this) }
|
||||
|
||||
Foo { i -> "${i + 1} ${this}" }
|
||||
Foo { i -> "${i + 1} $this" }
|
||||
}
|
||||
|
||||
class Baz1(f: (Int, Boolean) -> String) : Foo({ i -> f(i, this) })
|
||||
@@ -34,10 +34,10 @@ class Baz2 : Foo({ i -> (::g)(i, this) })
|
||||
val f1 = lambda()
|
||||
|
||||
class Baz3 : Foo({ i -> f1(i, this) })
|
||||
class Baz4 : Foo({ i -> "${i + 1} ${this}" })
|
||||
class Baz4 : Foo({ i -> "${i + 1} $this" })
|
||||
|
||||
class Baz5 : Foo {
|
||||
constructor(f: (Int, Boolean) -> String) : super({ i -> f(i, this) })
|
||||
constructor(a: Int) : super({ i -> (::g)(i, this) })
|
||||
constructor(a: Int, b: Int, c: Int) : super({ i -> "${i + 1} ${this}" })
|
||||
constructor(a: Int, b: Int, c: Int) : super({ i -> "${i + 1} $this" })
|
||||
}
|
||||
Reference in New Issue
Block a user