diff --git a/compiler/testData/diagnostics/tests/multimodule/packagePrivate.kt b/compiler/testData/diagnostics/tests/multimodule/packagePrivate.kt index 87f62aa6424..11a42db5948 100644 --- a/compiler/testData/diagnostics/tests/multimodule/packagePrivate.kt +++ b/compiler/testData/diagnostics/tests/multimodule/packagePrivate.kt @@ -9,11 +9,11 @@ private val a = 1 package p -val b = a // same package, same module +val b = a // same package, same module // MODULE: m2(m1) // FILE: c.kt package p -val c = a // same package, another module \ No newline at end of file +val c = a // same package, another module diff --git a/compiler/testData/diagnostics/tests/privateInFile/visibility.kt b/compiler/testData/diagnostics/tests/privateInFile/visibility.kt index b856fde0823..cd4b2a5f24d 100644 --- a/compiler/testData/diagnostics/tests/privateInFile/visibility.kt +++ b/compiler/testData/diagnostics/tests/privateInFile/visibility.kt @@ -29,21 +29,21 @@ package a fun test() { val y = makeA() - y.bar() - foo() + y.bar() + foo() - val u : A = A() + val u : A = A() - val z = x - x = 30 + val z = x + x = 30 - val po = PO + val po = PO val v = xx - xx = 40 + xx = 40 } -class B : A() {} +class B : A() {} class Q { class W { @@ -51,4 +51,4 @@ class Q { val y = makeA() //assure that 'makeA' is visible } } -} \ No newline at end of file +} diff --git a/compiler/testData/diagnostics/tests/privateInFile/visibility.txt b/compiler/testData/diagnostics/tests/privateInFile/visibility.txt index 0a9aee1ec36..8ee7cf2b674 100644 --- a/compiler/testData/diagnostics/tests/privateInFile/visibility.txt +++ b/compiler/testData/diagnostics/tests/privateInFile/visibility.txt @@ -18,10 +18,10 @@ package a { public final class B : a.A { public constructor B() - public final override /*1*/ /*fake_override*/ fun bar(): kotlin.Unit - public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean - public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int - public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + invisible_fake final override /*1*/ /*fake_override*/ fun bar(): kotlin.Unit + invisible_fake open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + invisible_fake open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + invisible_fake open override /*1*/ /*fake_override*/ fun toString(): kotlin.String } private object PO { diff --git a/compiler/testData/diagnostics/tests/scopes/visibility.kt b/compiler/testData/diagnostics/tests/scopes/visibility.kt index 5404053db72..249b34cf221 100644 --- a/compiler/testData/diagnostics/tests/scopes/visibility.kt +++ b/compiler/testData/diagnostics/tests/scopes/visibility.kt @@ -1,3 +1,5 @@ +// !DIAGNOSTICS: -UNUSED_PARAMETER + //FILE:a.kt package test_visibility @@ -26,7 +28,7 @@ class Y { class A { private val i = 23 private val v: B = B() - private fun f(i: Int): B = B() + private fun f(i: Int): B = B() fun test() { doSmth(i) @@ -38,8 +40,8 @@ class B { } fun test3(a: A) { - a.v //todo .bMethod() - a.f(0, 1) //todo .bMethod() + a.v //todo .bMethod() + a.f(0, 1) //todo .bMethod() } interface T @@ -52,7 +54,7 @@ open class C : T { } fun test4(c: C) { - c.i++ + c.i++ } class D : C() { @@ -76,7 +78,7 @@ class F : C() { class G : T { fun test8(c: C) { - doSmth(c.i) + doSmth(c.i) } } @@ -89,5 +91,5 @@ import test_visibility.* fun test() { internal_fun() - private_fun() -} \ No newline at end of file + private_fun() +} diff --git a/compiler/testData/diagnostics/tests/scopes/visibility2.kt b/compiler/testData/diagnostics/tests/scopes/visibility2.kt index cd70f4916fe..63f5e9ba81f 100644 --- a/compiler/testData/diagnostics/tests/scopes/visibility2.kt +++ b/compiler/testData/diagnostics/tests/scopes/visibility2.kt @@ -1,3 +1,5 @@ +// !DIAGNOSTICS: -UNUSED_VARIABLE + //FILE:a.kt package a @@ -15,28 +17,28 @@ private object PO {} //+JDK package b -import a.A -import a.foo +import a.A +import a.foo import a.makeA -import a.PO +import a.PO fun test() { val y = makeA() - y.bar() - foo() + y.bar() + foo() - val u : A = A() - val a : java.util.Arrays.ArrayList; + val u : A = A() + val a : java.util.Arrays.ArrayList; - val po = PO + val po = PO } -class B : A() {} +class B : A() {} class Q { class W { fun foo() { - val y = makeA() //assure that 'makeA' is visible + val y = makeA() //assure that 'makeA' is visible } } } @@ -44,4 +46,4 @@ class Q { //check that 'toString' can be invoked without specifying return type class NewClass : java.util.ArrayList<Integer>() { public override fun toString() = "a" -} \ No newline at end of file +} diff --git a/compiler/testData/diagnostics/tests/scopes/visibility3.kt b/compiler/testData/diagnostics/tests/scopes/visibility3.kt index 9b59078202f..8a5790008f0 100644 --- a/compiler/testData/diagnostics/tests/scopes/visibility3.kt +++ b/compiler/testData/diagnostics/tests/scopes/visibility3.kt @@ -25,18 +25,18 @@ package a fun test() { val y = makeA() - y.bar() - foo() + y.bar() + foo() - val u : A = A() + val u : A = A() - val z = x - x = 30 + val z = x + x = 30 - val po = PO + val po = PO } -class B : A() {} +class B : A() {} class Q { class W { @@ -44,4 +44,4 @@ class Q { val y = makeA() //assure that 'makeA' is visible } } -} \ No newline at end of file +} diff --git a/compiler/testData/diagnostics/tests/scopes/visibility3.txt b/compiler/testData/diagnostics/tests/scopes/visibility3.txt index 408015ac415..00f977f9077 100644 --- a/compiler/testData/diagnostics/tests/scopes/visibility3.txt +++ b/compiler/testData/diagnostics/tests/scopes/visibility3.txt @@ -17,10 +17,10 @@ package a { public final class B : a.A { public constructor B() - public final override /*1*/ /*fake_override*/ fun bar(): kotlin.Unit - public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean - public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int - public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + invisible_fake final override /*1*/ /*fake_override*/ fun bar(): kotlin.Unit + invisible_fake open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + invisible_fake open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + invisible_fake open override /*1*/ /*fake_override*/ fun toString(): kotlin.String } private object PO { diff --git a/compiler/testData/diagnostics/tests/variance/privateToThis/FunctionCall.kt b/compiler/testData/diagnostics/tests/variance/privateToThis/FunctionCall.kt index 51c208ab923..6f8cd8339bd 100644 --- a/compiler/testData/diagnostics/tests/variance/privateToThis/FunctionCall.kt +++ b/compiler/testData/diagnostics/tests/variance/privateToThis/FunctionCall.kt @@ -17,23 +17,23 @@ class Test { apply(this.foo()) with(Test()) { apply(foo()) // resolved to this@Test.foo - apply(this.foo()) - apply(this@with.foo()) + apply(this.foo()) + apply(this@with.foo()) apply(this@Test.foo()) } } fun test(t: Test) { - t.apply(t.foo()) + t.apply(t.foo()) } companion object { fun test(t: Test) { - t.apply(t.foo()) + t.apply(t.foo()) } } } fun test(t: Test) { - t.apply(t.foo()) -} \ No newline at end of file + t.apply(t.foo()) +} diff --git a/compiler/testData/diagnostics/tests/variance/privateToThis/GetVal.kt b/compiler/testData/diagnostics/tests/variance/privateToThis/GetVal.kt index 83dc5362460..8c63924feb6 100644 --- a/compiler/testData/diagnostics/tests/variance/privateToThis/GetVal.kt +++ b/compiler/testData/diagnostics/tests/variance/privateToThis/GetVal.kt @@ -16,23 +16,23 @@ class Test { apply(this.i) with(Test()) { apply(i) // resolved to this@Test.i - apply(this.i) - apply(this@with.i) + apply(this.i) + apply(this@with.i) apply(this@Test.i) } } fun test(t: Test) { - t.apply(t.i) + t.apply(t.i) } companion object { fun test(t: Test) { - t.apply(t.i) + t.apply(t.i) } } } fun test(t: Test) { - t.apply(t.i) -} \ No newline at end of file + t.apply(t.i) +} diff --git a/compiler/testData/diagnostics/tests/variance/privateToThis/SetVar.kt b/compiler/testData/diagnostics/tests/variance/privateToThis/SetVar.kt index c3495363e2f..920498713e6 100644 --- a/compiler/testData/diagnostics/tests/variance/privateToThis/SetVar.kt +++ b/compiler/testData/diagnostics/tests/variance/privateToThis/SetVar.kt @@ -16,23 +16,23 @@ class Test { this.i = getT() with(Test()) { i = getT() // resolved to this@Test.i - this.i = getT() - this@with.i = getT() + this.i = getT() + this@with.i = getT() this@Test.i = getT() } } fun test(t: Test) { - t.i = getT() + t.i = getT() } companion object { fun test(t: Test) { - t.i = getT() + t.i = getT() } } } fun test(t: Test) { - t.i = getT() -} \ No newline at end of file + t.i = getT() +} diff --git a/idea/testData/copyPaste/imports/NoImportForBuiltIns.expected.kt b/idea/testData/copyPaste/imports/NoImportForBuiltIns.expected.kt index 42c023236ad..7d17bb44b5e 100644 --- a/idea/testData/copyPaste/imports/NoImportForBuiltIns.expected.kt +++ b/idea/testData/copyPaste/imports/NoImportForBuiltIns.expected.kt @@ -1,10 +1,10 @@ -// ERROR: Cannot access 'd': it is 'private' in 'a' -// ERROR: Cannot access 'd': it is 'private' in 'a' -// ERROR: Cannot access 'b': it is 'private' in 'a' -// ERROR: Cannot access 'b': it is 'private' in 'a' +// ERROR: Cannot access 'd': it is 'private' in file +// ERROR: Cannot access 'd': it is 'private' in file +// ERROR: Cannot access 'b': it is 'private' in file +// ERROR: Cannot access 'b': it is 'private' in file package to import a.b import a.d -fun f(c: IntRange) = d + b \ No newline at end of file +fun f(c: IntRange) = d + b diff --git a/idea/testData/multiModuleHighlighting/testRoot/m1Test/m1Test.kt b/idea/testData/multiModuleHighlighting/testRoot/m1Test/m1Test.kt index dfde47dd0fe..31ac18f2829 100644 --- a/idea/testData/multiModuleHighlighting/testRoot/m1Test/m1Test.kt +++ b/idea/testData/multiModuleHighlighting/testRoot/m1Test/m1Test.kt @@ -10,7 +10,7 @@ public fun publicInM1Test() { } fun access() { - privateInM1() + privateInM1() internalInM1() publicInM1() @@ -33,4 +33,4 @@ fun access() { privateInM3Test() internalInM3Test() publicInM3Test() -} \ No newline at end of file +} diff --git a/idea/testData/multiModuleHighlighting/testRoot/m2/m2.kt b/idea/testData/multiModuleHighlighting/testRoot/m2/m2.kt index 05230b3aa27..1a7fedf71cc 100644 --- a/idea/testData/multiModuleHighlighting/testRoot/m2/m2.kt +++ b/idea/testData/multiModuleHighlighting/testRoot/m2/m2.kt @@ -10,7 +10,7 @@ public fun publicInM2() { } fun access() { - privateInM1() + privateInM1() internalInM1() publicInM1() @@ -33,4 +33,4 @@ fun access() { privateInM3Test() internalInM3Test() publicInM3Test() -} \ No newline at end of file +} diff --git a/idea/testData/multiModuleHighlighting/testRoot/m2Test/m2Test.kt b/idea/testData/multiModuleHighlighting/testRoot/m2Test/m2Test.kt index dc5df00b45a..75ea2cb7615 100644 --- a/idea/testData/multiModuleHighlighting/testRoot/m2Test/m2Test.kt +++ b/idea/testData/multiModuleHighlighting/testRoot/m2Test/m2Test.kt @@ -10,15 +10,15 @@ public fun publicInM2Test() { } fun access() { - privateInM1() + privateInM1() internalInM1() publicInM1() - privateInM1Test() + privateInM1Test() internalInM1Test() publicInM1Test() - privateInM2() + privateInM2() internalInM2() publicInM2() @@ -33,4 +33,4 @@ fun access() { privateInM3Test() internalInM3Test() publicInM3Test() -} \ No newline at end of file +} diff --git a/idea/testData/multiModuleHighlighting/testRoot/m3Test/m3Test.kt b/idea/testData/multiModuleHighlighting/testRoot/m3Test/m3Test.kt index 280fdaf6535..535d5d4733c 100644 --- a/idea/testData/multiModuleHighlighting/testRoot/m3Test/m3Test.kt +++ b/idea/testData/multiModuleHighlighting/testRoot/m3Test/m3Test.kt @@ -10,27 +10,27 @@ public fun publicInM3Test() { } fun access() { - privateInM1() + privateInM1() internalInM1() publicInM1() - privateInM1Test() + privateInM1Test() internalInM1Test() publicInM1Test() - privateInM2() + privateInM2() internalInM2() publicInM2() - privateInM2Test() + privateInM2Test() internalInM2Test() publicInM2Test() - privateInM3() + privateInM3() internalInM3() publicInM3() privateInM3Test() internalInM3Test() publicInM3Test() -} \ No newline at end of file +} diff --git a/idea/testData/multiModuleHighlighting/visibility/m2/m2.kt b/idea/testData/multiModuleHighlighting/visibility/m2/m2.kt index f1ffa7a3666..bd74302b027 100644 --- a/idea/testData/multiModuleHighlighting/visibility/m2/m2.kt +++ b/idea/testData/multiModuleHighlighting/visibility/m2/m2.kt @@ -7,13 +7,13 @@ fun testVisibility() { InternalClassInM1() - PrivateClassInM1() + PrivateClassInM1() publicFunInM1() internalFunInM1() - privateFunInM1() + privateFunInM1() } public class ClassInM2 @@ -31,4 +31,4 @@ public class B: int() } -} \ No newline at end of file +}