1 // REQUIRED_ARGS: -o-
2 // PERMUTE_ARGS:
3 
4 /*
5 TEST_OUTPUT:
6 ---
7 fail_compilation/spell9644.d(27): Error: undefined identifier `b`
8 fail_compilation/spell9644.d(28): Error: undefined identifier `xx`
9 fail_compilation/spell9644.d(29): Error: undefined identifier `cb`, did you mean variable `ab`?
10 fail_compilation/spell9644.d(30): Error: undefined identifier `bc`, did you mean variable `abc`?
11 fail_compilation/spell9644.d(31): Error: undefined identifier `ccc`
12 fail_compilation/spell9644.d(33): Error: undefined identifier `cor2`, did you mean variable `cor1`?
13 fail_compilation/spell9644.d(34): Error: undefined identifier `pua`, did you mean variable `pub`?
14 fail_compilation/spell9644.d(35): Error: undefined identifier `priw`
15 ---
16 */
17 
18 import imports.spell9644a;
19 
20 int a;
21 int ab;
22 int abc;
23 int cor1;
24 
main()25 int main()
26 {
27     cast(void)b; // max distance 0, no match
28     cast(void)xx; // max distance 1, no match
29     cast(void)cb; // max distance 1, match
30     cast(void)bc; // max distance 1, match
31     cast(void)ccc; // max distance 2, match
32 
33     cast(void)cor2; // max distance 1, match "cor1", but not cora from import (bug 13736)
34     cast(void)pua;  // max distance 1, match "pub" from import
35     cast(void)priw; // max distance 1, match "priv" from import, but do not report (bug 5839)
36 }
37