diff --git a/Sources/MockoloFramework/Utils/TypeParser.swift b/Sources/MockoloFramework/Utils/TypeParser.swift index cbfd9ca4..4b89b3d1 100644 --- a/Sources/MockoloFramework/Utils/TypeParser.swift +++ b/Sources/MockoloFramework/Utils/TypeParser.swift @@ -601,7 +601,7 @@ public final class `Type` { if let closureRng = closureRng { let left = ret[ret.startIndex.. (some Error)) + func register(router: @autoclosure @escaping () -> (some MyAwesomeType)) } """ @@ -106,8 +106,8 @@ class ProtocolReturningOpaqueTypeInClosureProtocolMock: ProtocolReturningOpaqueT private(set) var registerCallCount = 0 - var registerHandler: ((@autoclosure @escaping () -> (any Error)) -> ())? - func register(router: @autoclosure @escaping () -> (some Error)) { + var registerHandler: ((@autoclosure @escaping () -> (any MyAwesomeType)) -> ())? + func register(router: @autoclosure @escaping () -> (some MyAwesomeType)) { registerCallCount += 1 if let registerHandler = registerHandler { registerHandler(router())