[SR-11664] Getting "Expression type '()' is ambiguous without more context" when using @propertyWrapper #54073
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
property wrappers
Feature: property wrappers
type checker
Area → compiler: Semantic analysis
Environment
Xcode 11.1, Swift 5.1.
Additional Detail from JIRA
md5: 85608e7aafd274573da331f95bab48c9
relates to:
Issue Description:
Consider the following code:
As for me this code is correct. However getting Expression type '()' is ambiguous without more context for f(p: s). Temporal solution is to replace f(p: s) with f(p: s as P).
The text was updated successfully, but these errors were encountered: