diff --git a/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt b/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt index 121bba05a6d..1baccb084ee 100644 --- a/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt @@ -1,4 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER +// !WITH_NEW_INFERENCE abstract class SubFunction : kotlin.Function0 @@ -7,6 +8,6 @@ fun takeIt(x: T, f: SubFunction) {} fun cr() {} fun test() { - takeIt(42, ::cr) - takeIt(42, { }) + takeIt(42, ::cr) + takeIt(42, { }) } diff --git a/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt b/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt index a4df277004d..702f566be91 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt @@ -1,4 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER +// !WITH_NEW_INFERENCE class Scope @@ -12,7 +13,7 @@ fun insideJob1() = doTheJob1() suspend fun insideJob2() = doTheJob2() suspend fun insideJob3() = doTheJob3() -fun doTheJob0() = simpleAsync0 { insideJob0() } -fun doTheJob1() = simpleAsync1 { insideJob1() } -suspend fun doTheJob2() = simpleAsync2 { insideJob2() } -suspend fun doTheJob3() = simpleAsync3 { insideJob3() } +fun doTheJob0() = simpleAsync0 { insideJob0() } +fun doTheJob1() = simpleAsync1 { insideJob1() } +suspend fun doTheJob2() = simpleAsync2 { insideJob2() } +suspend fun doTheJob3() = simpleAsync3 { insideJob3() } diff --git a/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt b/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt index d8c27d1374f..2393b321445 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt @@ -3,13 +3,13 @@ fun test(t: T): T { if (t != null) { return t!! } - return t!! + return t!! } fun T.testThis(): String { if (this != null) { return this!!.toString() } - return this!!.toString() + return this!!.toString() } diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt index ac60e1158bc..9a3fe84a3c7 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt @@ -1,4 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER +// !WITH_NEW_INFERENCE @Target(AnnotationTarget.TYPE) @DslMarker @@ -20,7 +21,7 @@ fun baz4(x: @MyDsl B.() -> Unit) {} fun @MyDsl A.baz5() { baz4 { bar() - foo() + foo() } } @@ -35,21 +36,21 @@ fun main() { baz3 { baz2 { bar() - foo() + foo() } } baz1 { baz4 { bar() - foo() + foo() } } baz3 { baz4 { bar() - foo() + foo() } } diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt index da1020399d7..e09446630c7 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt @@ -1,5 +1,6 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !LANGUAGE: +DslMarkerOnFunctionTypeReceiver +// !WITH_NEW_INFERENCE @Target(AnnotationTarget.TYPE) @DslMarker @@ -21,7 +22,7 @@ fun baz4(x: @MyDsl B.() -> Unit) {} fun @MyDsl A.baz5() { baz4 { bar() - foo() + foo() } } @@ -36,21 +37,21 @@ fun main() { baz3 { baz2 { bar() - foo() + foo() } } baz1 { baz4 { bar() - foo() + foo() } } baz3 { baz4 { bar() - foo() + foo() } } diff --git a/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt b/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt index 72e74508fb9..87ffe272222 100644 --- a/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt +++ b/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +VariableDeclarationInWhenSubject +// !WITH_NEW_INFERENCE fun foo(s1: Int, s2: Int) = s1 + s2 @@ -43,6 +44,6 @@ fun test5(x: Inv) { fun test6(x: Inv) { when (val y = x.data) { - is String -> x.data.length // should be ok + is String -> x.data.length // should be ok } } \ No newline at end of file