diff --git a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/EnvironmentConfigurator.kt b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/EnvironmentConfigurator.kt index ec4c8b7c5e0..da93b8e7e19 100644 --- a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/EnvironmentConfigurator.kt +++ b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/EnvironmentConfigurator.kt @@ -22,8 +22,5 @@ abstract class EnvironmentConfigurator(protected val testServices: TestServices) protected val moduleStructure: TestModuleStructure get() = testServices.moduleStructure - protected val TestModule.allRegisteredDirectives: RegisteredDirectives - get() = ComposedRegisteredDirectives(directives, testServices.defaultDirectives) - open fun configureCompilerConfiguration(configuration: CompilerConfiguration, module: TestModule, project: MockProject) {} } diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JvmEnvironmentConfigurator.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JvmEnvironmentConfigurator.kt index 8fa8ed5af84..bc7c0e36656 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JvmEnvironmentConfigurator.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JvmEnvironmentConfigurator.kt @@ -38,7 +38,7 @@ class JvmEnvironmentConfigurator(testServices: TestServices) : EnvironmentConfig override fun configureCompilerConfiguration(configuration: CompilerConfiguration, module: TestModule, project: MockProject) { if (module.targetPlatform !in JvmPlatforms.allJvmPlatforms) return - val registeredDirectives = module.allRegisteredDirectives + val registeredDirectives = module.directives val targets = registeredDirectives[JvmEnvironmentConfigurationDirectives.JVM_TARGET] when (targets.size) { 0 -> {}