From e733aa21d50178410f5eb08512e3c8249c662ce9 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Tue, 14 Dec 2021 16:51:37 +0300 Subject: [PATCH] Fix error instead of muting it in kapt tests --- .../kapt3-compiler/testData/converter/nonExistentClass.kt | 4 ++-- .../kapt3-compiler/testData/converter/nonExistentClass.txt | 2 +- .../testData/converter/nonExistentClassWIthoutCorrection.kt | 4 ++-- .../testData/converter/nonExistentClassWIthoutCorrection.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.kt b/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.kt index 7e4acbcbd64..983786e8d66 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.kt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.kt @@ -2,11 +2,11 @@ // NON_EXISTENT_CLASS // NO_VALIDATION -@Suppress("CANNOT_INFER_PARAMETER_TYPE", "UNRESOLVED_REFERENCE") +@Suppress("UNRESOLVED_REFERENCE") object NonExistentType { val a: ABCDEF? = null val b: List? = null - val c: (ABCDEF) -> Unit = { f -> } + val c: (ABCDEF) -> Unit = { f: ABCDEF -> } val d: ABCDEF) -> Unit>? = null val foo: Foo get() = Foo() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.txt b/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.txt index d5639ef1f15..292f74b2bc9 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.txt @@ -1,6 +1,6 @@ import java.lang.System; -@kotlin.Suppress(names = {"CANNOT_INFER_PARAMETER_TYPE", "UNRESOLVED_REFERENCE"}) +@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"}) @kotlin.Metadata() public final class NonExistentType { @org.jetbrains.annotations.NotNull() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.kt b/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.kt index 93078ebe3da..74673d53507 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.kt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.kt @@ -1,7 +1,7 @@ // NON_EXISTENT_CLASS // NO_VALIDATION -@file:Suppress("CANNOT_INFER_PARAMETER_TYPE", "UNRESOLVED_REFERENCE") +@file:Suppress("UNRESOLVED_REFERENCE") typealias String2 = String typealias Coocoo = ABC @@ -11,7 +11,7 @@ typealias Coocoo3 = ABC object NonExistentType { val a: ABCDEF? = null val b: List? = null - val c: (ABCDEF) -> Unit = { f -> } + val c: (ABCDEF) -> Unit = { f: ABCDEF -> } val d: ABCDEF) -> Unit>? = null lateinit var string2: String2 diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.txt b/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.txt index 586c6f34507..e59b292bb5f 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.txt @@ -1,6 +1,6 @@ import java.lang.System; -@kotlin.Suppress(names = {"CANNOT_INFER_PARAMETER_TYPE", "UNRESOLVED_REFERENCE"}) +@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"}) @kotlin.Metadata() public final class NonExistentClassWIthoutCorrectionKt { }