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:
parent
a4da6cd33c
commit
9d0805c228
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user