Skip to content

Instantly share code, notes, and snippets.

@klukwist
Last active October 13, 2022 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klukwist/755eae5b2fc12c2d14ac9e3e5137bad5 to your computer and use it in GitHub Desktop.
Save klukwist/755eae5b2fc12c2d14ac9e3e5137bad5 to your computer and use it in GitHub Desktop.
module {
singleton<A> { AImpl() }
factory<B> {
BImpl(
a = get()
)
}
factoryWithParams<C> { (aParam) ->
C(
a = aParam as A,
b = get()
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment