1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Revert "Revert "Don’t constrain the type to the protocol, pass it in directly.""

This reverts commit c813e703e4ee963d94c1d45e7c935731a4eb0c7e.
This commit is contained in:
Rob Rix 2015-10-28 14:38:56 -04:00
parent a4da6cd33c
commit 9d0805c228

View File

@ -10,7 +10,7 @@ public enum JSON: ArrayLiteralConvertible, BooleanLiteralConvertible, Dictionary
case Null
public init<T: CustomJSONConvertible>(_ convertible: T) {
public init(_ convertible: CustomJSONConvertible) {
self = convertible.JSON
}