1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

Fix has a JSON property when A is CustomJSONConvertible.

This commit is contained in:
Rob Rix 2015-10-09 09:07:00 -05:00
parent 5fc16e86f8
commit 86c92e143a

View File

@ -63,3 +63,9 @@ extension Fix {
return [ "in": out.JSON(ifLeaf: ifLeaf, ifRecur: { $0.JSON(ifLeaf) }) ]
}
}
extension Fix where A: CustomJSONConvertible {
public var JSON: Doubt.JSON {
return JSON { $0.JSON }
}
}