Skip to content

[SR-5929] "cannot invoke f with no arguments" is a poor error message when f is known to be a property of non-function type #48488

Open
@dabrahams

Description

@dabrahams
Previous ID SR-5929
Radar None
Original Reporter @dabrahams
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 4.0Regression, DiagnosticsQoI
Assignee @xedin
Priority Medium

md5: d0f46e765296a6f923931a8a6965291f

Issue Description:

(swift) [1].underestimatedCount()
<REPL Input>:1:5: error: cannot invoke 'underestimatedCount' with no arguments
[1].underestimatedCount()
 ^

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of Implementationregressionswift 4.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions