Skip to content

Support reified inline types for koitlin-style Guice binders #1406

Open
@kshood

Description

@kshood

Currently, the following patterns do not work:

bind<MyType<OtherType>>().to(Whatever)
multibind<MyType<OtherType>>().to(Whatever)
newMapBinder<Type, MyType<OtherType>>().addBinding(key).to(balue)

Instead, whenever a reified inline type is used, one must use the following
object: TypeLiteral<MyType<OtherType>>

It would be nice if reified types worked like non-reified ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions