Dagger 2 Provides with Kotlin Anonymous functions Build Fail
With Dagger and kotlin.
When i compile the following code.
@Module
class NetworkModule {
@Provides
fun retrofit() = {
Retrofit.Builder()
.baseUrl(Constant.URL.BASE_URL)
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.build()
}
}
The Build Fails with following unclear error :...