Skip to content

Fakes: Naming conflict for type_ variables #87

@glureau

Description

@glureau

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions