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

Scope the JSON constructor correctly.

This commit is contained in:
Rob Rix 2015-10-09 09:02:31 -05:00
parent 05e1b97c90
commit 4512b6f2e7

View File

@ -98,7 +98,7 @@ extension Fix where A: StringConvertible {
.map(Structure.init)
.map({ $0.dictionary })
.map(toAnyObject)
.flatMap({ JSON(object: $0).flatMap { Fix(path: path, JSON: $0) } }) else { return nil }
.flatMap({ Doubt.JSON(object: $0).flatMap { Fix(path: path, JSON: $0) } }) else { return nil }
self = term
}
}