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: Can't fake dataclass containing typealiases #21

Closed
josegbel opened this issue May 16, 2022 · 1 comment
Closed

Fakes: Can't fake dataclass containing typealiases #21

josegbel opened this issue May 16, 2022 · 1 comment

Comments

@josegbel
Copy link

josegbel commented May 16, 2022

Trying to fake a class like the one below will throw an exception:

MocKMP: Cannot generate fake for non concrete class com.example.MyFloat
e: Error occurred in KSP, check log for detail

typealias MyFloat = Float

dataclass MyClass(val foo: MyFloat)
@josegbel josegbel changed the title Fakes: Can't mock data Fakes: Can't fake dataclass containing typealiase May 16, 2022
@josegbel josegbel changed the title Fakes: Can't fake dataclass containing typealiase Fakes: Can't fake dataclass containing typealiases May 16, 2022
@SalomonBrys
Copy link
Member

Fixed in 1.7.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

2 participants