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
First function (non-static one) does not produce any warning but second one (static one) does produce the warning. The last function (defined in global space) dose not produce any warnings.
The code can be compiled without any warning prior to swift 3.1.
The text was updated successfully, but these errors were encountered:
The second function is resolving to the type method Double.abs, not the top-level function Swift.abs. You can explicitly write Swift.abs to work around this.
Environment
Xcode-Beta Version 8.3 beta 2 (8W120l) with Apple Swift version 3.1 (swiftlang-802.0.31.3 clang-802.0.30.2) Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 3cac9218e5de50771ca63ae2bcdce774
Issue Description:
In particular case, Swift 3.1 compiler generates warning of global math function like this:
Entire code is like this:
abs.swift
First function (non-static one) does not produce any warning but second one (static one) does produce the warning. The last function (defined in global space) dose not produce any warnings.
The code can be compiled without any warning prior to swift 3.1.
The text was updated successfully, but these errors were encountered: