Support scope validation
Opened this issue · 0 comments
bitlinker commented
It's possible to create component which provides dependencies with wrong scopes, because there are no such checks here:
Example:
// Unscoped component, or component with some another scope
interface Component(modules = [FooModule::class]) {
...
}
object FooModule {
@Foo // Some scope here
fun provideFoo() : Foo{
...
}
}
This compiles fine and scope will work for Foo
, however it's confusing because this scope is not attached to the current component