From 30aee3bfb63213f198e709a08a5e18776dfa74c3 Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Thu, 22 Nov 2018 18:36:05 +0300 Subject: [PATCH] [NI] Update test data --- .../diagnostics/tests/FunctionCalleeExpressions.kt | 2 +- .../diagnostics/tests/PackageInExpressionPosition.kt | 3 +-- .../tests/deparenthesize/checkDeparenthesizedType.kt | 10 +++++----- .../tests/regressions/TypeMismatchOnUnaryOperations.kt | 4 ++-- .../invoke/functionExpectedWhenSeveralInvokesExist.kt | 2 +- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt index 388dc07641e..64614f9b010 100644 --- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt +++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt @@ -59,7 +59,7 @@ fun main1() { {1}(); (fun (x : Int) = x)(1) 1.(fun Int.(x : Int) = x)(1); - l@{1}() + l@{1}() 1.((fun Int.() = 1))() 1.(f())() 1.if(true){f()}else{f()}() diff --git a/compiler/testData/diagnostics/tests/PackageInExpressionPosition.kt b/compiler/testData/diagnostics/tests/PackageInExpressionPosition.kt index 65ad54eda21..a0fd717964b 100644 --- a/compiler/testData/diagnostics/tests/PackageInExpressionPosition.kt +++ b/compiler/testData/diagnostics/tests/PackageInExpressionPosition.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package foo class X {} @@ -22,6 +21,6 @@ fun main() { System is Int System() (System) - foo@ System + foo@ System null in System } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt b/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt index eedeedee207..f03833ab722 100644 --- a/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt +++ b/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt @@ -5,19 +5,19 @@ package m fun test(i: Int?) { if (i != null) { - foo(l1@ i) + foo(l1@ i) foo((i)) - foo(l2@ (i)) - foo((l3@ i)) + foo(l2@ (i)) + foo((l3@ i)) } - val a: Int = l4@ "" + val a: Int = l4@ "" val b: Int = ("") val c: Int = checkSubtype("") val d: Int = checkSubtype("") - foo(l4@ "") + foo(l4@ "") foo(("")) foo(checkSubtype("")) foo(checkSubtype("")) diff --git a/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt b/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt index 48103baa59b..ec127c52f8a 100644 --- a/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt +++ b/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt @@ -9,8 +9,8 @@ fun main() { val h : String = v--; val h1 : String = --v; val i : String = !true; - val j : String = foo@ true; - val k : String = foo@ bar@ true; + val j : String = foo@ true; + val k : String = foo@ bar@ true; val l : String = -1; val m : String = +1; } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt b/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt index b258c97d2d1..c0fa5735df2 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt @@ -7,7 +7,7 @@ fun Int.invoke(a: Int, b: Int) {} class SomeClass fun test(identifier: SomeClass, fn: String.() -> Unit) { - identifier() + identifier() identifier(123) identifier(1, 2) 1.fn()