From 868fe913f11bb3191845b18e1dbe93956dcf2d3e Mon Sep 17 00:00:00 2001 From: Kirill Rakhman Date: Wed, 4 Jan 2023 10:23:29 +0100 Subject: [PATCH] reformat test data --- .../diagnostics/tests/objects/Objects.fir.kt | 32 +++++++++---------- .../diagnostics/tests/objects/Objects.kt | 32 +++++++++---------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/compiler/testData/diagnostics/tests/objects/Objects.fir.kt b/compiler/testData/diagnostics/tests/objects/Objects.fir.kt index 3b80ddbbf97..2e256a9f3cc 100644 --- a/compiler/testData/diagnostics/tests/objects/Objects.fir.kt +++ b/compiler/testData/diagnostics/tests/objects/Objects.fir.kt @@ -1,30 +1,30 @@ // COMPARE_WITH_LIGHT_TREE package toplevelObjectDeclarations - open class Foo(y : Int) { - open fun foo() : Int = 1 - } +open class Foo(y: Int) { + open fun foo(): Int = 1 +} - class T : Foo {} +class T : Foo {} - object A : Foo { - val x : Int = 2 +object A : Foo { + val x: Int = 2 - fun test() : Int { - return x + foo() + fun test(): Int { + return x + foo() } - } +} - object B : A {} +object B : A {} - val x = A.foo() +val x = A.foo() - val y = object : Foo(x) { +val y = object : Foo(x) { init { - x + 12 + x + 12 } - override fun foo() : Int = 1 - } + override fun foo(): Int = 1 +} - val z = y.foo() +val z = y.foo() diff --git a/compiler/testData/diagnostics/tests/objects/Objects.kt b/compiler/testData/diagnostics/tests/objects/Objects.kt index ba346f1d738..c985cecf0fe 100644 --- a/compiler/testData/diagnostics/tests/objects/Objects.kt +++ b/compiler/testData/diagnostics/tests/objects/Objects.kt @@ -1,30 +1,30 @@ // COMPARE_WITH_LIGHT_TREE package toplevelObjectDeclarations - open class Foo(y : Int) { - open fun foo() : Int = 1 - } +open class Foo(y: Int) { + open fun foo(): Int = 1 +} - class T : Foo {} +class T : Foo {} - object A : Foo { - val x : Int = 2 +object A : Foo { + val x: Int = 2 - fun test() : Int { - return x + foo() + fun test(): Int { + return x + foo() } - } +} - object B : A {} +object B : A {} - val x = A.foo() +val x = A.foo() - val y = object : Foo(x) { +val y = object : Foo(x) { init { - x + 12 + x + 12 } - override fun foo() : Int = 1 - } + override fun foo(): Int = 1 +} - val z = y.foo() +val z = y.foo()