[SR-5594] Unexpected error: Cannot call value of non-function type 'Data?' #48166
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
Attachment: Download
Environment
Xcode Version 9.0 beta 3 (9M174d)
macOS 10.12.6 (16G29)
Additional Detail from JIRA
md5: 0890e579e92a51e271134ebf2834f1af
relates to:
Issue Description:
Observed Behavior:
In the following example adapted from the Special Picture Protocol sample code:
This compile-time error is emitted:
Expected behavior:
An error like this is emitted:
The text was updated successfully, but these errors were encountered: