You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classPresentableListenerMock:PresentableListener{init(){}#if DEBUGprivate(set)varrunCallCount=0varrunHandler:((Int)->())?func run(value:Int){
runCallCount +=1
if let runHandler = runHandler {runHandler(value)}}// not supporting overloadprivate(set)varrunCallCount=0varrunHandler:((String)->())?func run(value:String){
runCallCount +=1
if let runHandler = runHandler {runHandler(value)}}#endifprivate(set)varrun2CallCount=0varrun2Handler:((Int)->())?func run2(value:Int){
run2CallCount +=1
if let run2Handler = run2Handler {run2Handler(value)}}// supporting overloadprivate(set)varrun2ValueCallCount=0varrun2ValueHandler:((String)->())?func run2(value:String){
run2ValueCallCount +=1
if let run2ValueHandler = run2ValueHandler {run2ValueHandler(value)}}}
Expected output
mock vars for second func run(value:) inside if macro should be runValueCount and runValueHandler.
The text was updated successfully, but these errors were encountered:
Overload inside
#if
macro produces same handlers that results compile error.mock vars for second func
run(value:)
inside if macro should berunValueCount
andrunValueHandler
.The text was updated successfully, but these errors were encountered: