Are scope annotations supposed to be inherited? Fo...
# kotlin-inject
e
Are scope annotations supposed to be inherited? For example,
Copy code
interface BaseFooComponent {
  @Provides @AppSingleton fun provideFoo(): Foo
}

abstract class FooComponent : BaseFooComponent {
  override fun provideFoo(): Foo = MyFoo()
}
Foo
gets provided, but it is not scoped.
e
Yes, please file a bug
d
😧 Does this happen all over, or is this just a specific case? This is a really mean bug for performance!
Having all the definitions in the component is a hard workaround... any other way to workaround this problem until the bug is fixed?
e
I think it's a specific case. I have to check again when I file the issue
d
Please let me know when you have a chance... I split my components like this in many projects... and I'm sure I'm not the only one.
👍 1
e
My tests are showing that this always happens. Filing the bug now