Compiling Swift 2.3 occasionally shows Swift 3.0 fixits

Originator:keithbsmiley
Number:rdar://28272715 Date Originated:12-Sep-2016 20:33
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8 GM
Classification:UI/Usability Reproducible:Sometimes
 
Summary:
We have a Swift project where SWIFT_VERSION is set to 2.3 for all targets. Yet sometimes when compiling you see compiler fixits that suggest syntax changes for Swift 3.0. I'd estimate that it happens more than half the time I do a clean build. The build still succeeds.

Steps to Reproduce:
1. Create a new Swift project
2. Set use legacy swift version to yes
3. Add some syntax such as `guard let ... where ... else {}` that has changed in Swift 3
4. Compile

Expected Results:
You should compile with no warnings

Actual Results:
Sometimes Swift 3 fixits show up while the app is compiling.

Version:
Xcode 8 GM

Notes:
See the attached screenshot for a small example.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!