kosi-libs / MocKMP

A mocking processor for Kotlin Multiplatform
https://kosi-libs.org/mockmp
MIT License
189 stars 12 forks source link

Fakes: Can't fake dataclass containing typealiases #21

Closed josegbel closed 2 years ago

josegbel commented 2 years ago

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)
SalomonBrys commented 2 years ago

Fixed in 1.7.0