Minor: Fix test data for ConvertFunctionTypeParameterToReceiverIntention

This commit is contained in:
Alexey Sedunov
2018-01-24 13:59:04 +03:00
parent a59fd3bc85
commit c96eb8df85
3 changed files with 9 additions and 9 deletions
@@ -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" }
}
@@ -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" })
}
@@ -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" })
}