[SR-11379] Type mismatch in trailing closure gives "Argument passed to call that takes no arguments" #53780
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
Xcode 10.3 (10G8), Swift 5
Additional Detail from JIRA
md5: 28adb9a6e0fd0671db51c4e9356e7671
relates to:
Issue Description:
Given the following (contrived) example:
The code works out, but if one comments out the
line, one gets a warning, as can be expected, but a misleading one, namely: "Argument passed to call that takes no arguments"
This seems related to SR-6246
The text was updated successfully, but these errors were encountered: