From 0ac96b4973c39f82676c61fa88f0e146fff29737 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Tue, 3 Aug 2021 00:26:10 +0300 Subject: [PATCH] [Test] Remove redundant out variance from TestStep --- .../tests/org/jetbrains/kotlin/test/TestStep.kt | 4 ++-- .../tests/org/jetbrains/kotlin/test/TestStepBuilder.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestStep.kt b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestStep.kt index c86a266d5f9..a44ef26772b 100644 --- a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestStep.kt +++ b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestStep.kt @@ -8,7 +8,7 @@ package org.jetbrains.kotlin.test import org.jetbrains.kotlin.test.TestRunner.Companion.shouldRun import org.jetbrains.kotlin.test.model.* -sealed class TestStep, out O : ResultingArtifact> { +sealed class TestStep, O : ResultingArtifact> { abstract val inputArtifactKind: TestArtifactKind open fun shouldProcessModule(module: TestModule, inputArtifact: ResultingArtifact<*>): Boolean { @@ -70,7 +70,7 @@ sealed class TestStep, out O : ResultingArtifact } sealed class StepResult> { - class Artifact>(val outputArtifact: O, ) : StepResult() + class Artifact>(val outputArtifact: O) : StepResult() class ErrorFromFacade>(val exception: WrappedException) : StepResult() data class HandlersResult( val exceptionsFromHandlers: Collection, diff --git a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestStepBuilder.kt b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestStepBuilder.kt index 71b471f83ee..d22b9bce6bc 100644 --- a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestStepBuilder.kt +++ b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestStepBuilder.kt @@ -8,7 +8,7 @@ package org.jetbrains.kotlin.test import org.jetbrains.kotlin.test.model.* import org.jetbrains.kotlin.test.services.TestServices -sealed class TestStepBuilder, out O : ResultingArtifact> { +sealed class TestStepBuilder, O : ResultingArtifact> { @TestInfrastructureInternals abstract fun createTestStep(testServices: TestServices): TestStep }