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

Fakes: Naming conflict for type_ variables #87

Open
glureau opened this issue Feb 18, 2025 · 0 comments
Open

Fakes: Naming conflict for type_ variables #87

glureau opened this issue Feb 18, 2025 · 0 comments

Comments

@glureau
Copy link

glureau commented Feb 18, 2025

Given 2 classes with same name on 2 different packages, the generated code will be:

import a.b.c.di.DeviceOsFamily as DiDeviceOsFamily
import a.b.c.model.DeviceOsFamily as ModelDeviceOsFamily

private val type_DeviceOsFamily: KType = typeOf<DiDeviceOsFamily>()
private val type_DeviceOsFamily: KType = typeOf<ModelDeviceOsFamily>()

The prefix used in import aliases should also be used for variable names I guess.

(MocKMP 2.0.0)

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