diff --git a/idea/testData/intentions/addThrowsAnnotation/if_ni.kt.after b/idea/testData/intentions/addThrowsAnnotation/if_ni.kt.after index 54bd789f181..7356c39722b 100644 --- a/idea/testData/intentions/addThrowsAnnotation/if_ni.kt.after +++ b/idea/testData/intentions/addThrowsAnnotation/if_ni.kt.after @@ -1,7 +1,7 @@ // COMPILER_ARGUMENTS: -XXLanguage:+NewInference // WITH_RUNTIME -@Throws(Exception::class) +@Throws(Throwable::class) fun a(b: Boolean) { throw if (b) RuntimeException() else Exception() } \ No newline at end of file diff --git a/nj2k/testData/newJ2k/issues/kt-19591.kt b/nj2k/testData/newJ2k/issues/kt-19591.kt index b9a85eb021a..5c71885ef09 100644 --- a/nj2k/testData/newJ2k/issues/kt-19591.kt +++ b/nj2k/testData/newJ2k/issues/kt-19591.kt @@ -1,5 +1,5 @@ class TestNumberConversionsInTernary { fun intOrDoubleAsDouble(flag: Boolean, x: Int, y: Double): Double { - return (if (flag) x else y).toDouble() + return if (flag) x.toDouble() else y } -} +} \ No newline at end of file diff --git a/tests/mute-common.csv b/tests/mute-common.csv index 1663f60b578..e69ded46b7f 100644 --- a/tests/mute-common.csv +++ b/tests/mute-common.csv @@ -34,7 +34,6 @@ org.jetbrains.kotlin.idea.maven.MavenMigrateTest.testMigrateApiAndLanguageVersio org.jetbrains.kotlin.idea.maven.configuration.MavenConfigureProjectByChangingFileTestGenerated.Jvm.testWithJava9ModuleInfo, Probably test data should be updated,, org.jetbrains.kotlin.idea.quickfix.DeprecatedSymbolUsageFixSpecialTest.testDefaultParameterValuesFromLibrary, Always red because of additional import,, FLAKY org.jetbrains.kotlin.idea.quickfix.QuickFixMultiModuleTestGenerated.CreateActual.testWithTestDummy, Very flaky on teamcity,, FLAKY -org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.CreateFromUsage.CreateClass.CallExpression.testCallInWhenEntry, KT-35728,, org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.Libraries.testJunit, ERROR: Couldn't find the following libraries,, org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.Libraries.testTestNG, ERROR: Couldn't find the following libraries,, org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.ObsoleteKotlinJsPackages.testKotlinDomAndBrowserImport, Always red because UAST does not work with JS,,