Open b8591340 opened 2 years ago
Workaround: Move the extension into the original declaration body (SE-0267):
@propertyWrapper
struct Wrap<Value> {
var wrappedValue: Value
init(wrappedValue: Value) {
self.wrappedValue = wrappedValue
}
// SE-0267
init() where Value: ExpressibleByStringLiteral {
self.init(wrappedValue: "")
}
}
class Object {
@Wrap var value: String // no error!
}