diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/DiagnosticReporterByTrackingStrategy.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/DiagnosticReporterByTrackingStrategy.kt index 7398559c52d..e88879e9dec 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/DiagnosticReporterByTrackingStrategy.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/DiagnosticReporterByTrackingStrategy.kt @@ -478,10 +478,7 @@ class DiagnosticReporterByTrackingStrategy( OnlyInputTypesDiagnostic::class.java -> { val typeVariable = (error as OnlyInputTypesDiagnostic).typeVariable as? TypeVariableFromCallableDescriptor ?: return psiKotlinCall.psiCall.calleeExpression?.let { - val factory = if (context.languageVersionSettings.supportsFeature(LanguageFeature.NonStrictOnlyInputTypesChecks)) - TYPE_INFERENCE_ONLY_INPUT_TYPES_WARNING - else TYPE_INFERENCE_ONLY_INPUT_TYPES - trace.report(factory.on(it, typeVariable.originalTypeParameter)) + trace.report(TYPE_INFERENCE_ONLY_INPUT_TYPES.on(it, typeVariable.originalTypeParameter)) } } } diff --git a/compiler/testData/codegen/box/intrinsics/javaPrimitiveType_UnitAndNothing.kt b/compiler/testData/codegen/box/intrinsics/javaPrimitiveType_UnitAndNothing.kt index 0409f06d7a3..ee33f2d42e8 100644 --- a/compiler/testData/codegen/box/intrinsics/javaPrimitiveType_UnitAndNothing.kt +++ b/compiler/testData/codegen/box/intrinsics/javaPrimitiveType_UnitAndNothing.kt @@ -10,6 +10,7 @@ fun box(): String { assertEquals(null, pNUnit!!::class.javaPrimitiveType) assertEquals(null, Unit::class.javaPrimitiveType) + @Suppress("TYPE_INFERENCE_ONLY_INPUT_TYPES") assertEquals(java.lang.Void.TYPE, Nothing::class.javaPrimitiveType) return "OK" diff --git a/compiler/testData/foreignAnnotations/java8Tests/jsr305/typeArguments.kt b/compiler/testData/foreignAnnotations/java8Tests/jsr305/typeArguments.kt index fc9f997911b..c7c896bc587 100644 --- a/compiler/testData/foreignAnnotations/java8Tests/jsr305/typeArguments.kt +++ b/compiler/testData/foreignAnnotations/java8Tests/jsr305/typeArguments.kt @@ -89,9 +89,9 @@ fun main(a: test.A, l: L, Int?>, l1: L, Int>) a.bar(l1 as L, Int?>) a.baz1().t().containsKey("") - a.baz1().t().containsKey(null) + a.baz1().t().containsKey(null) a.baz1().t().containsValue(1) - a.baz1().t().containsValue(null) + a.baz1().t().containsValue(null) a.baz1().s().hashCode() a.baz1().setT(l.t()) @@ -105,8 +105,8 @@ fun main(a: test.A, l: L, Int?>, l1: L, Int>) a.baz2().s().hashCode() a.baz3().t().containsKey("") - a.baz3().t().containsKey(null) + a.baz3().t().containsKey(null) a.baz3().t().containsValue(1) - a.baz3().t().containsValue(null) + a.baz3().t().containsValue(null) a.baz3().s().hashCode() } diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt index f7867067d90..4c7af495269 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt @@ -29,8 +29,8 @@ fun case_1(value_1: Int, value_2: EmptyClass, value_3: Int, value_4: Any): Strin */ fun case_2(value_1: Int, value_3: Nothing) { when (value_1) { - in value_3 -> {} - in throw Exception() -> {} - in return -> {} + in value_3 -> {} + in throw Exception() -> {} + in return -> {} } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt index 59dae6b5b25..1b5dad4abe4 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt @@ -29,7 +29,7 @@ open class Case1 { x.get(0) x.size x.isEmpty() - x[null] + x[null] } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt index 43d3a57e254..be1a98c5f9b 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt @@ -29,7 +29,7 @@ open class Case1 { x.get(0) x.size x.isEmpty() - x[null] + x[null] } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt index 79ef2e235ef..a43861bfe6e 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt @@ -29,7 +29,7 @@ open class Case1 { x.get(0) x.size x.isEmpty() - x[null] + x[null] } } }