Here's a trivial example that demonstrates the crash and also shows that using a computed works around the issue
enum E {}
struct Good {
var e: E.Type { E.self }
}
struct Bad {
let e: E.Type = E.self
}
print("\(Good())") // prints "Good()"
print("\(Bad())") // crashes
There's a bug that causes a crash when attempting to print the description of a type with a stored "thin" metatype: https://github.com/swiftlang/swift/issues/62003
Here's a trivial example that demonstrates the crash and also shows that using a computed works around the issue
Alternatively we could replace the
InjectionConfiguration.Type
property entirely as suggested here: https://github.com/krzysztofzablocki/Inject/pull/20#issuecomment-1102306265