Closed maxkonovalov closed 8 years ago
Hi! In some cases optional vars for custom models are needed in addition to plain swift types.
var
For example:
struct Profile { var identifier = 0 var stats: Stats? = nil } extension Profile: ArrowParsable { init(json: JSON) { identifier <-- json["id"] stats <== json["stats"] // error } }
The current implementation gives the following error for the above code: Cannot convert value of type 'Stats?' to expected argument type 'inout _'.
Cannot convert value of type 'Stats?' to expected argument type 'inout _'
Hi! In some cases optional
var
s for custom models are needed in addition to plain swift types.For example:
The current implementation gives the following error for the above code:
Cannot convert value of type 'Stats?' to expected argument type 'inout _'
.