Avatar
swiftbot BOT 6/5/2018 4:57 AM
Author icon
koher
struct Foo { var a: Int = 42 } struct Bar { var foo: Foo? = Foo() } var bar = Bar() bar.foo?.a = -1 // ✅ print(bar.foo!.a)
Version:
swift-4.1.1-RELEASE
Output:
-1
Error: