In terms of the a scope annotation no, you need a ...
# kotlin-inject
e
In terms of the a scope annotation no, you need a
@Component
to generate code for that. In terms of how long instances live for, then yeah sure. Like if you had:
Copy code
class Parent(@Provides:get val foo: Foo)
@Component
abstract class Child(@Component val parent: Parent)

val parent = Parent(Foo()) // foo lives as long as parent
val child = Child::class.create(parent)