[SR-12024] Type inference gone wrong #54461
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
macOS: 10.15.2
Xcode: 11.3
Additional Detail from JIRA
md5: 182f9aa190723b7abb449c702c036d42
Issue Description:
Consider the following code sample:
When running this code in playground I get the following error:
I believe this to be a bug because
var arr
is explicitly typed to be an array ofProto
conforming objects.The text was updated successfully, but these errors were encountered: