From c96eb8df853bbe54e0945f1c661eb097d657df79 Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Wed, 24 Jan 2018 13:59:04 +0300 Subject: [PATCH] Minor: Fix test data for ConvertFunctionTypeParameterToReceiverIntention --- .../nonFirstParameter.kt.after | 2 +- .../nonFirstParameterPrimaryConstructor.kt.after | 8 ++++---- .../nonFirstParameterSecondaryConstructor.kt.after | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameter.kt.after b/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameter.kt.after index 80e0c559209..817c4bfe340 100644 --- a/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameter.kt.after +++ b/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameter.kt.after @@ -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" } } \ No newline at end of file diff --git a/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameterPrimaryConstructor.kt.after b/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameterPrimaryConstructor.kt.after index 7041b92d53c..c4523ff09e5 100644 --- a/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameterPrimaryConstructor.kt.after +++ b/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameterPrimaryConstructor.kt.after @@ -1,7 +1,7 @@ open class Foo(f: Boolean.(Int) -> 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" }) } \ No newline at end of file diff --git a/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameterSecondaryConstructor.kt.after b/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameterSecondaryConstructor.kt.after index fc22b0fca5f..438c2b91c51 100644 --- a/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameterSecondaryConstructor.kt.after +++ b/idea/testData/intentions/convertFunctionTypeParameterToReceiver/nonFirstParameterSecondaryConstructor.kt.after @@ -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" }) } \ No newline at end of file