Skip to content

Binding an abstract type which has an abstract inheritor ToAllImplementations causes StyletIoCRegistrationException #355

Description

@sirdoombox

Description
Binding an abstract base type ToAllImplementations() when there is an abstract type in the assembly which inherits from it causes a StyletIoCRegistrationException.

To Reproduce

abstract class Foo { }
abstract class Bar : Foo { }
class FooBar : Bar { }
// ...
builder.Bind<Foo>().ToAllImplementations();

// On Building...
// StyletIoC.StyletIoCRegistrationException: Type Bar is not a concrete class, and so can't be used to implemented service Foo

Version Info

  • Stylet version: 1.3.6
  • Runtime version: 6.0.302

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions