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
All imported methods get @discardableResult by default unless they have the warn_unused_result attribute. But I don't know which version the Foundation folks would rather be consistent on.
Environment
Maybe the Darwin version has a @discardableResult inferred, but the Linux version doesn't?
Additional Detail from JIRA
md5: ffc858aa35aaef61dbab2dde595ed6f7
Issue Description:
With the following code, and running on Swift 4.1:
import Foundation
FileManager.createFile(atPath:"/tmp/foo", contents:Data())
I get no compile warning on Swift 4.1 (Apple Swift version 4.1) but I do on Swift 4.1-Linux
tst.swift:2:21: warning: result of call to 'createFile(atPath:contents:attributes🙂' is unused
The text was updated successfully, but these errors were encountered: