Closed honghaoz closed 8 years ago
Seems like I cannot use Then on struct type:
Then
struct SomeStruct { var name: String = "" } extension SomeStruct : Then {} var aStruct = SomeStruct().then { $0.name = "123" }
$0.name = "123" line throw an error: ...swift:43:10: Cannot assign to property: '$0' is a 'let' constant
$0.name = "123"
...swift:43:10: Cannot assign to property: '$0' is a 'let' constant
@honghaoz, #18 fixes the issue and has been shipped with 1.0.0 release :smile:
great! thanks :+1:
Seems like I cannot use
Then
on struct type:$0.name = "123"
line throw an error:...swift:43:10: Cannot assign to property: '$0' is a 'let' constant