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

A problem occurs when referencing a data class inside an interface. #8

Open
kante-j opened this issue Nov 14, 2023 · 0 comments
Open

Comments

@kante-j
Copy link

kante-j commented Nov 14, 2023

example

// ExampleFile1.kt
interface A{
    data class Ainside(
        val a1: Int,
        val a2: String
    )
}
interface A2 ...

and I want to make Mapper from B data class to A data class

...
import com...A
@KConMapper(toClasses = [A.Ainside::class])
data class B(
    val a1:Int
)

And last, I can get mapper generated files

import com...Ainside// this is problems occur point
fun B.toAinside(
	a2: String
) = Ainside(
	a1 = this.a1,
	a2 = a2
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant