[SR-3694] Generic parameter 'T' could not be inferred #46279
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
Swift 3.0.2
Additional Detail from JIRA
md5: c83c6d2f3fcfe12ce96731dda60215a4
Issue Description:
For the given generic code, the compiler reports an error that type could not be inferred. It looks to me that constraints are set to "Collection" everywhere and inferred type should be ArraySlice<UInt8>. It should compile and run without the problem.
The text was updated successfully, but these errors were encountered: