[SR-7108] Generic usage complication thru nesting leads to Compilation error: Generic parameter could not be inferred #49656
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Environment
macOS 10.13.3 (17D102)
Xcode 9.2
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Additional Detail from JIRA
md5: 9a7b97c03b4c56d3ca38833b490a79ec
Issue Description:
Consider following two examples. They are abstract. The first one is more complicated and produces compilation error: "Generic parameter could not be inferred" while the second - simplified version of the first compiles fine.
I expect no errors with the first example compilation as the type can be inferred in fact (and should).
First example (compiles with the error):
Second example (simplified, compiles fine):
The text was updated successfully, but these errors were encountered: