Under Xcode 7.1 Beta 3, Swift 2.1 Array declarations are causing odd compiler errors

Originator:karl
Number:rdar://22994874 Date Originated:10/6/2015
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
Under Xcode 7.1 Beta 3 (7B85), Swift Array declarations are causing odd compiler errors.  

The attached code sample works in Xcode 7.1 Beta1 (7B60) and Xcode 7 (7A1001).

The errors are:
/Users/catigbek/Development/ArrayIssueSample/ArrayIssueSample/ViewController.swift:21:48: 'τ_0_0' is not convertible to 'UIView'

/Users/catigbek/Development/ArrayIssueSample/ArrayIssueSample/AuxiliaryClass.swift:17:18: Ambiguous reference to member 'append'

and:
<unknown>:0: error: cannot assign value of type 'Array<_>' to type 'Array'


Note this issue has no line number associated, so tracking down the cause is extremely difficult.  In our production code, we're seeing multiple errors due to this change in array handling.


We can work around the issues by redeclaring our arrays very explicitly,
however that seems to go counter to swift's type inference.

Steps to Reproduce:
Open sample project
attempt to compile with XC7.1b3

compiler errors shown

Expected Results:
Compile without issue.

Actual Results:
Compiles without error.


Version:
Xcode 7.1 beta 3 : Swift 2.1

Notes:


Configuration:
Xcode 7.1 beta 3, Swift 2.1

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!