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:
parent
5fc16e86f8
commit
86c92e143a
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user