diff --git a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt index a734ef489e4..6254980df3e 100644 --- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt +++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt @@ -42,7 +42,7 @@ fun main(args : Array) { val b = fooT2()(1) b : Int - fooT2()(1) // : Any? + fooT2()(1) // : Any? 1() 1{} diff --git a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt index 40f1890e22e..e12a5c82976 100644 --- a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt +++ b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt @@ -1,11 +1,10 @@ - // Fixpoint generic in Java: Enum> fun test(a : annotation.RetentionPolicy) { } fun test() { - java.util.Collections.emptyList() + java.util.Collections.emptyList() val a : java.util.Collection? = java.util.Collections.emptyList() } @@ -19,4 +18,4 @@ fun test(a : java.util.ArrayList) { fun test(a : java.lang.Class) { -} +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/ResolveToJava.kt b/compiler/testData/diagnostics/tests/ResolveToJava.kt index 9499dc3164b..c6ddc4523f5 100644 --- a/compiler/testData/diagnostics/tests/ResolveToJava.kt +++ b/compiler/testData/diagnostics/tests/ResolveToJava.kt @@ -18,10 +18,10 @@ fun test(l : java.util.List) { val f : java.io.File? = null - Collections.emptyList + Collections.emptyList Collections.emptyList Collections.emptyList() - Collections.emptyList() + Collections.emptyList() Collections.singleton(1) : Set? Collections.singleton(1.0) diff --git a/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt b/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt index eaf2e25cdb8..14ecb798037 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt @@ -39,10 +39,10 @@ fun main(args : Array) { joinG(1, "2") joinG(*1, "2") - joinG(1, *"2") + joinG(1, *"2") joinG(x = 1, a = *a) - joinG(x = 1, a = "2") - joinG(x = *1, a = *"2") + joinG(x = 1, a = "2") + joinG(x = *1, a = *"2") joinG(1, *a) joinG(1, *a, "3") joinG(1, "4", *a, "3") @@ -88,5 +88,4 @@ fun joinG(x : Int, vararg a : T) : String { fun joinT(x : Int, vararg a : T) : T? { return null -} - +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt index 4ee535aae1f..769fa72bd6a 100644 --- a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt +++ b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt @@ -3,7 +3,7 @@ fun fooT22() : T? { } fun foo1() { - fooT22() + fooT22() } -val n : Nothing = null.sure() +val n : Nothing = null.sure() \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/regressions/kt353.kt b/compiler/testData/diagnostics/tests/regressions/kt353.kt index ccfd5fa5515..0b62948ba27 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt353.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt353.kt @@ -12,7 +12,7 @@ fun foo(a: A) { val u: Unit = a.gen() // Unit should be inferred if (true) { - a.gen() // Shouldn't work: no info for inference + a.gen() // Shouldn't work: no info for inference } val b : () -> Unit = { @@ -28,5 +28,5 @@ fun foo(a: A) { a.gen() //type mismatch, but Int can be derived } - a.gen() // Shouldn't work: no info for inference -} + a.gen() // Shouldn't work: no info for inference +} \ No newline at end of file