[SR-5984] Error message for accidentally calling function in #selector(foo()) could suggest removing parens #48543
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
type checker
Area → compiler: Semantic analysis
Environment
Swift 4.0
Additional Detail from JIRA
md5: 939952c8851f309540d6ce3aaa7d7c15
Issue Description:
This is close to the correct syntax (
#selector(foo)
) and the compiler could help guide the user to this. This probably comes up most often with selectors for methods with no arguments (https://bugs.swift.org/browse/SR-1016).The text was updated successfully, but these errors were encountered: