when updating to 0.8.0 i have a weird bug with typ...
# kotlin-inject
j
when updating to 0.8.0 i have a weird bug with typealias but i can't create a reproduction so not sure where is best to start debugging 🧵
in my component i have this defined
Copy code
@NetworkScope @Provides
    fun provideMonthlyUpdatesClient(client: HttpClient): MonthlyUpdatesClient = MonthlyUpdateRoutesImpl(client)
MontlhyUpdatesClient
is a typealias
Copy code
typealias MonthlyUpdatesClient = MonthlyUpdateRoutes
i am now getting this error when updating to 0.8.0
[ksp] Cannot find an @Inject constructor or provider for: com.joshafeinberg.common.routes.MonthlyUpdateRoutes
if i change the return value on my function to
MonthlyUpdateRoutes
Copy code
@NetworkScope @Provides
    fun provideMonthlyUpdatesClient(client: HttpClient): MonthlyUpdateRoutes = MonthlyUpdateRoutesImpl(client)
then it works fine
the classes that need
MontlhyUpdatesClient/MonthlyUpdateRoutes
always have
MonthlyUpdatesClient
in their constructor param