diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt index bf44f13a905..5a6af434204 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt @@ -27,8 +27,8 @@ fun bar(aList: List) { b checkType { _() } } - aList.foo { (a, b): B -> + aList.foo { (a, b): B -> b checkType { _() } a checkType { _() } - } + } } diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt b/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt index 1a955bc1ad0..33795f62314 100644 --- a/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt @@ -1,4 +1,4 @@ // !WITH_NEW_INFERENCE //KT-13330 AssertionError: Illegal resolved call to variable with invoke -fun foo(exec: (String.() -> Unit)?) = "".exec<caret>() // is test data tag here \ No newline at end of file +fun foo(exec: (String.() -> Unit)?) = "".exec<caret>() // is test data tag here \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt index 2d0bde629ee..14a26805e52 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt @@ -1,9 +1,10 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER +// !WITH_NEW_INFERENCE operator fun String.invoke(i: Int) {} fun foo(s: String?) { s(1) - (s ?: null)(1) + (s ?: null)(1) } diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/invokeAndSmartCast.kt b/compiler/testData/diagnostics/tests/resolve/invoke/invokeAndSmartCast.kt index 0f119bc2f3e..12dc450e4da 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/invokeAndSmartCast.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/invokeAndSmartCast.kt @@ -4,18 +4,18 @@ class A(val x: (String.() -> Unit)?) fun test(a: A) { if (a.x != null) { "".(a.x)() - a.x("") // todo + a.x("") // todo (a.x)("") } "".(a.x)() - a.x("") - (a.x)("") + a.x("") + (a.x)("") with("") { - a.x() - (a.x)() + a.x() + (a.x)() if (a.x != null) { - a.x() // todo + a.x() // todo (a.x)() } }