'Array index out of bounds' when call `prefix` free function with empty array
| Originator: | pitiphong.ph | ||
| Number: | rdar://21527409 | Date Originated: | 25-Jun-2015 12:56 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Swift 1.2 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: 'Array index out of bounds' when call `prefix` free function with empty array Steps to Reproduce: Call prefix free function with empty array as a argument Expected Results: `prefer` function return empty array Actual Results: `Array index out of bound` error occurs Regression: Notes: There is no document about empty array as a argument so I think this function should return empty when use empty array as a arguments
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!