1 // Check that we get nice suggestions when attempting a chained comparison.
4 1 < 2 <= 3; //~ ERROR comparison operators cannot be chained
5 //~^ ERROR mismatched types
9 1 < 2 < 3; //~ ERROR comparison operators cannot be chained
13 1 <= 2 < 3; //~ ERROR comparison operators cannot be chained
14 //~^ ERROR mismatched types
18 1 <= 2 <= 3; //~ ERROR comparison operators cannot be chained
19 //~^ ERROR mismatched types
23 1 > 2 >= 3; //~ ERROR comparison operators cannot be chained
24 //~^ ERROR mismatched types
28 1 > 2 > 3; //~ ERROR comparison operators cannot be chained
32 1 >= 2 > 3; //~ ERROR comparison operators cannot be chained
36 1 >= 2 >= 3; //~ ERROR comparison operators cannot be chained
37 //~^ ERROR mismatched types
41 1 == 2 < 3; //~ ERROR comparison operators cannot be chained
45 1 > 2 == false; //~ ERROR comparison operators cannot be chained
49 1 == 2 == 3; //~ ERROR comparison operators cannot be chained
50 //~^ ERROR mismatched types