struct Foo {
// 1) error: 'Foo' initializer is inaccessible due to 'private' protection level
private var bar: Int
// 2) this makes synthesized init work, but it should be "private", not "readable"
// private(set) var bar: Int
// 3) so must hand write init
init(bar: Int) {
self.bar = bar
}
}
let foo = Foo(bar: 100)
seems overly restrictive.