[Swift] Missing whitespace leads to compiler errors
Originator: | romaaan.git | ||
Number: | rdar://22117841 | Date Originated: | 2015-08-03 |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | |
Classification: | Reproducible: |
Summary: Using the following code: ``` if indexPath.row == items.count+ 1 { println("Test") } ``` leads to the error: "Expected ( after if condition" Adding a whitespace after ```count``` resolves the error and it will compile. Steps to Reproduce: Use this code and try to compile if indexPath.row == items.count+ 1 { println("Test") } Expected Results: It should compile Actual Results: The compiler gives an error and fails to parse the expression Version: Swift 1.2 Xcode 6.4 iOS 8.x
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!