[SR-7003] Poor diagnostics when attempting to access members on unfulfilled generic type #49551
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
Swift version 4.1-dev (LLVM b1f1b1f5b8, Clang d8b11579e8, Swift 66d2b75329)
Target: x86_64-apple-darwin17.4.0
Additional Detail from JIRA
md5: bf91ca14b2ba91f148d908e42f1b23df
Issue Description:
The following code raises some nonsensical error messages:
I would expect the error message "Generic parameter 'T' could not be inferred" instead.
The text was updated successfully, but these errors were encountered: