[SR-7339] Incorrect keypath error for invalid typecast #49887
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
Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
Xcode 9.3
Additional Detail from JIRA
md5: 45aa5b2c9a05c9665672583ae8bf0723
Issue Description:
Given this code
and trying to create variable
I'm getting this error
Which is misleading, since Demo has member here.
If changed to
Error changes to
The text was updated successfully, but these errors were encountered: