Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[K2] KMP: ERROR CLASS for references in the shared code if there is an intermediate level between them #3377

Closed
atyrin opened this issue Nov 27, 2023 · 3 comments · Fixed by #3437
Assignees
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Milestone

Comments

@atyrin
Copy link
Contributor

atyrin commented Nov 27, 2023

// commonMain
class A

// sharedJvmAndJsMain
// Nothing

// jvmMain
fun resolve(a: A) {}

(updated)

K2
image

In K1 it was resolved.

Installation

  • Dokka version: 1.9.20

Parent: #3328
A similar issue in the compiler: KT-59071 K2/MPP: internal declarations from common module are invisible in dependent source sets if there is more that one intermediate source set between

@atyrin atyrin added bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888 labels Nov 27, 2023
@atyrin atyrin changed the title [K2] ERROR CLASS for typealias to native distribution [K2], KMP: ERROR CLASS for references in the shared code if there is an intermediate level between them Nov 27, 2023
@IgnatBeresnev IgnatBeresnev changed the title [K2], KMP: ERROR CLASS for references in the shared code if there is an intermediate level between them [K2] KMP: ERROR CLASS for references in the shared code if there is an intermediate level between them Dec 12, 2023
@vmishenev
Copy link
Contributor

Can you provide a reproducer?
It seems opt_site_t is missed in your snippet.

@atyrin
Copy link
Contributor Author

atyrin commented Dec 15, 2023

The snippet is incorrect, sorry.

// commonMain
class A

// sharedJvmAndJsMain
// Nothing

// jvmMain
fun resolve(a: A) {}

k2mpp.zip

@vmishenev
Copy link
Contributor

Your reproducer also has unresolved class in K1.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants