[SR-7247] Misleading type inference error message for extensions #49795
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
4.1 development snapshot (LLVM 260a172ffb, Clang cd84be6c42, Swift 04baf31).
Additional Detail from JIRA
md5: 2640556cbadebf5abba890a0ac38cfe1
Issue Description:
The following distills the issue I hit (in larger body of code):
The compiler gives the following error:
But of course the issue is unknown generic type on SomeType, i.e. the fix is:
Reproduces on current 4.1 development snapshot (LLVM 260a172ffb, Clang cd84be6c42, Swift 04baf31).
The text was updated successfully, but these errors were encountered: