SafeDI icon indicating copy to clipboard operation
SafeDI copied to clipboard

Provide a better error when type names are not equally-qualified in instantiated and received declarations

Open NickEntin opened this issue 1 year ago • 0 comments

Goals Make it less painful to debug when you refer to a type in an Instantiator by two different names.

Design Give a more actionable error when we have a type that doesn't match anything, but there's an existing type that is the same name prefixed by another type. For example:

@Instantiated private let someThing: Instantiated<View>

@Received private let someThing: Instantiated<MyViewController.View>

NickEntin avatar Aug 06 '24 01:08 NickEntin