diff --git a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt
index b4862b43c83..7110379adda 100644
--- a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt
+++ b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt
@@ -3,8 +3,8 @@ fun text() {
"direct:a" to "mock:a"
"direct:a" on {it.body == ""} to "mock:a"
"direct:a" on {it -> it.body == ""} to "mock:a"
- bar {1}
- bar {it + 1}
+ bar {1}
+ bar {it + 1}
bar {it, it1 -> it}
bar1 {1}
diff --git a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt
index 34a0db2f3fb..47bdfafefcc 100644
--- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt
+++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt
@@ -75,7 +75,7 @@ fun main1() {
fun test() {
{x : Int -> 1}();
(fun Int.() = 1)()
- "sd".(fun Int.() = 1)()
+ "sd".(fun Int.() = 1)()
val i : Int? = null
i.(fun Int.() = 1)();
{}()
diff --git a/compiler/testData/diagnostics/tests/annotations/kt1860-negative.kt b/compiler/testData/diagnostics/tests/annotations/kt1860-negative.kt
index abe7c374fb6..b9ac57a2ee3 100644
--- a/compiler/testData/diagnostics/tests/annotations/kt1860-negative.kt
+++ b/compiler/testData/diagnostics/tests/annotations/kt1860-negative.kt
@@ -2,7 +2,7 @@
fun foo(@varargs f : Int) {}
var bar : Int = 1
- set(@varargs v) {}
+ set(@varargs v) {}
val x : (Int) -> Int = {@varargs x : Int -> x}
diff --git a/compiler/testData/diagnostics/tests/annotations/kt1860-positive.kt b/compiler/testData/diagnostics/tests/annotations/kt1860-positive.kt
index deb61c77d7d..8bfc6a58b9b 100644
--- a/compiler/testData/diagnostics/tests/annotations/kt1860-positive.kt
+++ b/compiler/testData/diagnostics/tests/annotations/kt1860-positive.kt
@@ -5,7 +5,7 @@ annotation class test
fun foo(@test f : Int) {}
var bar : Int = 1
- set(@test v) {}
+ set(@test v) {}
val x : (Int) -> Int = {@test x : Int -> x} // todo fix parser annotation on lambda parameter
diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt
index 389f455614c..33b2707243c 100644
--- a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt
+++ b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt
@@ -17,7 +17,7 @@ fun test1_0() {}
@Ann1(*["a", "b"])
fun test1_1() {}
-@Ann1(*["a", 1, null])
+@Ann1(*["a", 1, null])
fun test1_2() {}
@Ann2(*[])
diff --git a/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt b/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt
index a916759e485..8ab51d936e6 100644
--- a/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt
+++ b/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt
@@ -19,8 +19,8 @@ fun test(i: Int?) {
foo(l4@ "")
foo((""))
- foo(checkSubtype(""))
- foo(checkSubtype(""))
+ foo(checkSubtype(""))
+ foo(checkSubtype(""))
use(a, b, c, d)
}
diff --git a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt
index 5ddba708712..ce65a8f7486 100644
--- a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt
+++ b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt
@@ -30,9 +30,9 @@ fun test1() {
}
- foo2 {
+ foo2 {
""
- }
+ }
foo2 {
s: String -> ""
}
diff --git a/compiler/testData/diagnostics/tests/implicitNestedIntersection.ni.txt b/compiler/testData/diagnostics/tests/implicitNestedIntersection.ni.txt
index ea7efe24486..6f44beb1c5e 100644
--- a/compiler/testData/diagnostics/tests/implicitNestedIntersection.ni.txt
+++ b/compiler/testData/diagnostics/tests/implicitNestedIntersection.ni.txt
@@ -1,7 +1,9 @@
package
public fun foo2(): In
+public fun foo8(): In
public fun *0*/ T> select(/*0*/ x: T, /*1*/ y: T): T
+public fun *0*/ S> select8(/*0*/ a: S, /*1*/ b: S, /*2*/ c: S, /*3*/ d: S, /*4*/ e: S, /*5*/ f: S, /*6*/ g: S, /*7*/ h: S): S
public open class A : In {
public constructor A()
@@ -17,6 +19,48 @@ public open class B : In {
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
+public open class C : In {
+ public constructor C()
+ 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
+}
+
+public open class D : In {
+ public constructor D()
+ 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
+}
+
+public open class E : In {
+ public constructor E()
+ 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
+}
+
+public open class F : In {
+ public constructor F()
+ 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
+}
+
+public open class G : In {
+ public constructor G()
+ 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
+}
+
+public open class H : In {
+ public constructor H()
+ 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
+}
+
public interface In*0*/ in E> {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
diff --git a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt
index fe4495d62fe..0a93b9ec508 100644
--- a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt
+++ b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt
@@ -7,8 +7,8 @@ fun g (f: () -> List) : T {val x = g { Collections.emptyList() }
+ val x = g { Collections.emptyList() }
- val y = g { Collections.emptyList() }
- val z : List = g { Collections.emptyList() }
+ val y = g { Collections.emptyList() }
+ val z : List = g { Collections.emptyList() }
}
\ No newline at end of file
diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt
index d8cf7245936..b9029b23fdf 100644
--- a/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt
+++ b/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt
@@ -13,7 +13,7 @@ fun A.foo(x: (T)-> G): G {
}
fun main(args: Array) {
- val a = A(1)
- val t: String = a.foo({p -> p})
+ val a = A(1)
+ val t: String = a.foo({p -> p})
checkSubtype(t)
}
\ No newline at end of file
diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt
index 428faf30d1a..e653fa5441a 100644
--- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt
+++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt
@@ -39,7 +39,7 @@ fun l(x: E): List = null!!
// vars
var x3
get() = 1
- set(q) {
+ set(q) {
}
// recursive
diff --git a/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt b/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt
index 415aa2a661d..8fa76806ef3 100644
--- a/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt
+++ b/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt
@@ -2,7 +2,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun test(a: Int, b: Boolean) {
- bar(a.foo(b))
+ bar(a.foo(b))
}
fun T.foo(l: (T) -> R): R = TODO()