Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2787 from yebblies/issue9644
Issue 9644 - Spell checker gives silly suggestions for 1-2 character symbols
- Loading branch information
Showing
5 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// REQUIRED_ARGS: -o- | ||
// PERMUTE_ARGS: | ||
|
||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/spell9644.d(21): Error: undefined identifier b | ||
fail_compilation/spell9644.d(22): Error: undefined identifier xx | ||
fail_compilation/spell9644.d(23): Error: undefined identifier cb, did you mean variable ab? | ||
fail_compilation/spell9644.d(24): Error: undefined identifier bc, did you mean variable abc? | ||
fail_compilation/spell9644.d(25): Error: undefined identifier ccc, did you mean variable abc? | ||
--- | ||
*/ | ||
|
||
int a; | ||
int ab; | ||
int abc; | ||
|
||
int main() | ||
{ | ||
cast(void)b; // max distance 0, no match | ||
cast(void)xx; // max distance 1, no match | ||
cast(void)cb; // max distance 1, match | ||
cast(void)bc; // max distance 1, match | ||
cast(void)ccc; // max distance 2, match | ||
} |