From 726184eda91f5778ddb61aa7f2fd6b65216885c5 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Mon, 28 Dec 2020 12:03:46 +0300 Subject: [PATCH] [Test] Add @JvmMultifileClass to coroutine helpers files This is needed to keep compatibility with old format, when all those helpers were generated dynamically on test run in one file, so you can reference helpers methods from java code just importing `helpers.CoroutineUtilKt` --- .../diagnostics/helpers/coroutines/CoroutineHelpers.kt | 3 +++ .../diagnostics/helpers/coroutines/StateMachineChecker.kt | 3 +++ .../helpers/coroutines/TailCallOptimizationChecker.kt | 3 +++ 3 files changed, 9 insertions(+) diff --git a/compiler/testData/diagnostics/helpers/coroutines/CoroutineHelpers.kt b/compiler/testData/diagnostics/helpers/coroutines/CoroutineHelpers.kt index fbba93231cd..6d72aea84dd 100644 --- a/compiler/testData/diagnostics/helpers/coroutines/CoroutineHelpers.kt +++ b/compiler/testData/diagnostics/helpers/coroutines/CoroutineHelpers.kt @@ -1,3 +1,6 @@ +@file:JvmMultifileClass +@file:JvmName("CoroutineUtilKt") + package helpers import kotlin.coroutines.* diff --git a/compiler/testData/diagnostics/helpers/coroutines/StateMachineChecker.kt b/compiler/testData/diagnostics/helpers/coroutines/StateMachineChecker.kt index 69a47f6aac6..bd4ab066365 100644 --- a/compiler/testData/diagnostics/helpers/coroutines/StateMachineChecker.kt +++ b/compiler/testData/diagnostics/helpers/coroutines/StateMachineChecker.kt @@ -1,3 +1,6 @@ +@file:JvmMultifileClass +@file:JvmName("CoroutineUtilKt") + package helpers import kotlin.coroutines.* diff --git a/compiler/testData/diagnostics/helpers/coroutines/TailCallOptimizationChecker.kt b/compiler/testData/diagnostics/helpers/coroutines/TailCallOptimizationChecker.kt index ad89c2c337c..e81cd4e907f 100644 --- a/compiler/testData/diagnostics/helpers/coroutines/TailCallOptimizationChecker.kt +++ b/compiler/testData/diagnostics/helpers/coroutines/TailCallOptimizationChecker.kt @@ -1,3 +1,6 @@ +@file:JvmMultifileClass +@file:JvmName("CoroutineUtilKt") + package helpers import kotlin.coroutines.*