"Instance member cannot be used on type" diagnostic message could be more specific #62909
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
Motivation
It took me far too long to understand why the compiler was giving me this error (I was quickly trying something a bit less trivial than this example involving async/await, and thought the issue was around the execution context):
Solution
A more precise wording, something like "Instance method cannot be called from static context", would be much more helpful.
The text was updated successfully, but these errors were encountered: