title: kotlin.jvm.functions.Function1<? super java.lang.String,kotlin.Unit> cannot be provided without an @Provides-annotated method
body: <p>Usage/ injection:</p>
  
  <pre><code>    @Inject
      @field:Named("MyStringSaverFunction")
      lateinit var stringSaverFunction: (String) -&gt; Unit
  
  </code></pre>
  
  <p><strong>My Module</strong></p>
  
  <pre><code>@Module(includes = [AbcModule.UiBinding::class])
  object AbcModule {
      @Module
      interface UiBinding {
          @PerFragment
          @ContributesAndroidInjector
          fun provideFragment(): AbcFragment
      }
      @Provides
      @JvmStatic
      @Singleton
      @Named("AbcSharedPrefs")
      fun provideAbcSharedPrefs(context: Context) : SharedPreferences {
          return context.getSharedPreferences("AbcSharedPrefs", Context.MODE_PRIVATE)
      }
  
      @Provides
      @JvmStatic
      @Singleton
      @Named("MyStringSaverFunction")
      fun provideDfIntentSaver(@Named("AbcSharedPrefs") sharedPreferences: SharedPreferences): (String) -&gt; Unit {
          return { theString: String -&gt;
              sharedPreferences.edit().putString("TheKey", theString).apply()
          }
      }
  }
  </code></pre>
  
  <p>Error details:</p>
  
  <pre><code>error: [Dagger/MissingBinding] @javax.inject.Named("MyStringSaverFunction") kotlin.jvm.functions.Function1&lt;? super java.lang.String,kotlin.Unit&gt; cannot be provided without an @Provides-annotated method.
  public abstract interface MyAppComponent extends dagger.android.AndroidInjector&lt;com.myapp.android.MyApplication&gt; {
                  ^
        @javax.inject.Named("MyStringSaverFunction") kotlin.jvm.functions.Function1&lt;? super java.lang.String,kotlin.Unit&gt; is injected at
            com.myapp.android.AbcFragment.stringSaverFunction
        com.myapp.android.AbcFragment is injected at
  
  &gt; Task :myapp:kaptDebugKotlin FAILED
            dagger.android.AndroidInjector.inject(T) [com.myapp.android.di.MyAppComponent → com.myapp.android.di.AbcModule_Bindable_ProvideFragment.AbcFragmentSubcomponent]
  FAILURE: Build failed with an exception.
  </code></pre>