[SR-8507] 'foo bar' could have fixit suggesting missing . rather than just ; or , #51027
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
good first issue
Good for newcomers
parser
Area → compiler: The legacy C++ parser
Environment
Master at 2018-08-09
Additional Detail from JIRA
md5: 2e0b2de995cd56da9923536462d8ef0c
Issue Description:
For instance, in the following code, the mistake is missing the
.
, not missing a;
The errors for each of the three invalid lines are:
If it looks like an property access (or even a method call) might be valid (i.e. the thing after the space is an identifier), the compiler could guess at using
.
rather than/as well as;
or,
.The text was updated successfully, but these errors were encountered: