Alamofire: Xcode 8.1 Compiler warning

Created on 28 Oct 2016  ·  6Comments  ·  Source: Alamofire/Alamofire

This is in Request.swift in master

screen shot 2016-10-27 at 4 32 56 pm

screen shot 2016-10-27 at 4 34 14 pm

bug swift

Most helpful comment

With carthage I have these errors:

/Carthage/Checkouts/Alamofire/Source/Request.swift:474:47: warning: expression implicitly coerced from 'URLSessionTask?' to Any
/Carthage/Checkouts/Alamofire/Source/Request.swift:474:47: warning: expression implicitly coerced from 'URLSessionTask?' to Any
/Carthage/Checkouts/Alamofire/Source/Request.swift:474:47: warning: expression implicitly coerced from 'URLSessionTask?' to Any
/Carthage/Checkouts/Alamofire/Source/Request.swift:474:47: warning: expression implicitly coerced from 'URLSessionTask?' to Any

My cartfile:

github "Alamofire/Alamofire" == 4.0.1

All 6 comments

With carthage I have these errors:

/Carthage/Checkouts/Alamofire/Source/Request.swift:474:47: warning: expression implicitly coerced from 'URLSessionTask?' to Any
/Carthage/Checkouts/Alamofire/Source/Request.swift:474:47: warning: expression implicitly coerced from 'URLSessionTask?' to Any
/Carthage/Checkouts/Alamofire/Source/Request.swift:474:47: warning: expression implicitly coerced from 'URLSessionTask?' to Any
/Carthage/Checkouts/Alamofire/Source/Request.swift:474:47: warning: expression implicitly coerced from 'URLSessionTask?' to Any

My cartfile:

github "Alamofire/Alamofire" == 4.0.1

I receive the same Carthage warning

+1

This will be fixed once #1735 is merged.

Thank you @jshier :)

I'm going to close this issue out since #1735 has been merged. The 4.1.0 release is forthcoming.

Cheers. 🍻

Was this page helpful?
0 / 5 - 0 ratings