From 5b2168ecef5889fdfbdb164c640a9881654d530f Mon Sep 17 00:00:00 2001 From: Ilya Puchka Date: Tue, 1 Nov 2016 14:47:33 +0300 Subject: [PATCH] fixed broken swift 2.3 api --- Sources/RuntimeArguments_swift2.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/RuntimeArguments_swift2.swift b/Sources/RuntimeArguments_swift2.swift index 4586fee..fbfa603 100644 --- a/Sources/RuntimeArguments_swift2.swift +++ b/Sources/RuntimeArguments_swift2.swift @@ -157,7 +157,7 @@ - seealso: `register(_:tag:factory:)`, `resolve(tag:builder:)` */ - public func resolve(tag: DependencyTagConvertible? = nil, arguments arg1: A) throws -> T { + public func resolve(tag tag: DependencyTagConvertible? = nil, arguments arg1: A) throws -> T { return try resolve(tag: tag) { factory in try factory(arg1) } } @@ -174,7 +174,7 @@ } /// - seealso: `resolve(tag:arguments:)` - public func resolve(tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B) throws -> T { + public func resolve(tag tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B) throws -> T { return try resolve(tag: tag) { factory in try factory(arg1, arg2) } } @@ -191,7 +191,7 @@ } /// - seealso: `resolve(tag:arguments:)` - public func resolve(tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B, _ arg3: C) throws -> T { + public func resolve(tag tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B, _ arg3: C) throws -> T { return try resolve(tag: tag) { factory in try factory(arg1, arg2, arg3) } } @@ -208,7 +208,7 @@ } /// - seealso: `resolve(tag:arguments:)` - public func resolve(tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B, _ arg3: C, _ arg4: D) throws -> T { + public func resolve(tag tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B, _ arg3: C, _ arg4: D) throws -> T { return try resolve(tag: tag) { factory in try factory(arg1, arg2, arg3, arg4) } } @@ -225,7 +225,7 @@ } /// - seealso: `resolve(tag:arguments:)` - public func resolve(tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B, _ arg3: C, _ arg4: D, _ arg5: E) throws -> T { + public func resolve(tag tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B, _ arg3: C, _ arg4: D, _ arg5: E) throws -> T { return try resolve(tag: tag) { factory in try factory(arg1, arg2, arg3, arg4, arg5) } } @@ -242,7 +242,7 @@ } /// - seealso: `resolve(tag:arguments:)` - public func resolve(tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B, _ arg3: C, _ arg4: D, _ arg5: E, _ arg6: F) throws -> T { + public func resolve(tag tag: DependencyTagConvertible? = nil, arguments arg1: A, _ arg2: B, _ arg3: C, _ arg4: D, _ arg5: E, _ arg6: F) throws -> T { return try resolve(tag: tag) { factory in try factory(arg1, arg2, arg3, arg4, arg5, arg6) } }