[FE 1.0] Prohibit implicit Java actualization in K1

^KT-58545 Fixed
Review: https://jetbrains.team/p/kt/reviews/10561

It's not yet supported in K2 KT-59213

Related tests:
- ApiTest.testStdlib
- RuntimePublicAPITest.kotlinStdlibRuntimeMerged
- KotlinProjectViewTestGenerated.test_Arrays (in Kotlin plugin)
This commit is contained in:
Nikita Bobko
2023-06-02 18:06:11 +02:00
parent d0452d569f
commit f4ba5aaf9a
18 changed files with 268 additions and 5 deletions
@@ -17,7 +17,8 @@
package org.jetbrains.kotlin.load.java.descriptors;
import org.jetbrains.kotlin.descriptors.ClassDescriptor;
import org.jetbrains.kotlin.mpp.MppJavaImplicitActualizatorMarker;
public interface JavaClassDescriptor extends ClassDescriptor {
public interface JavaClassDescriptor extends ClassDescriptor, MppJavaImplicitActualizatorMarker {
boolean isRecord();
}
@@ -0,0 +1,14 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.mpp
/**
* The marker interface marks all Java descriptors that can implicitly actualize expect declarations.
*
* The marker interface is needed for being able to access information about Java specific descriptors from platform-agnostic
* `:compiler:frontend` module
*/
interface MppJavaImplicitActualizatorMarker