@@ -1945,7 +1945,7 @@ fn parse_logical_and_expression(
1945
1945
// Check if RHS expr can be implicit casted to Expected LHS type to make this
1946
1946
// Expression valid
1947
1947
for expected_type in expected_rhs_types. iter ( ) {
1948
- if !expected_type. has_implicit_cast_from ( & lhs ) {
1948
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
1949
1949
continue ;
1950
1950
}
1951
1951
@@ -2033,7 +2033,7 @@ fn parse_bitwise_or_expression(
2033
2033
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2034
2034
// Expression valid
2035
2035
for expected_type in expected_rhs_types. iter ( ) {
2036
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2036
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2037
2037
continue ;
2038
2038
}
2039
2039
@@ -2123,7 +2123,7 @@ fn parse_bitwise_xor_expression(
2123
2123
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2124
2124
// Expression valid
2125
2125
for expected_type in expected_rhs_types. iter ( ) {
2126
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2126
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2127
2127
continue ;
2128
2128
}
2129
2129
@@ -2212,7 +2212,7 @@ fn parse_logical_xor_expression(
2212
2212
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2213
2213
// Expression valid
2214
2214
for expected_type in expected_rhs_types. iter ( ) {
2215
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2215
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2216
2216
continue ;
2217
2217
}
2218
2218
@@ -2300,7 +2300,7 @@ fn parse_bitwise_and_expression(
2300
2300
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2301
2301
// Expression valid
2302
2302
for expected_type in expected_rhs_types. iter ( ) {
2303
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2303
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2304
2304
continue ;
2305
2305
}
2306
2306
@@ -2387,7 +2387,7 @@ fn parse_equality_expression(
2387
2387
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2388
2388
// Expression valid
2389
2389
for expected_type in expected_rhs_types. iter ( ) {
2390
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2390
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2391
2391
continue ;
2392
2392
}
2393
2393
@@ -2455,7 +2455,7 @@ fn parse_equality_expression(
2455
2455
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2456
2456
// Expression valid
2457
2457
for expected_type in expected_rhs_types. iter ( ) {
2458
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2458
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2459
2459
continue ;
2460
2460
}
2461
2461
@@ -2608,7 +2608,7 @@ fn parse_comparison_expression(
2608
2608
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2609
2609
// Expression valid
2610
2610
for expected_type in expected_rhs_types. iter ( ) {
2611
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2611
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2612
2612
continue ;
2613
2613
}
2614
2614
@@ -2669,7 +2669,7 @@ fn parse_comparison_expression(
2669
2669
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2670
2670
// Expression valid
2671
2671
for expected_type in expected_rhs_types. iter ( ) {
2672
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2672
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2673
2673
continue ;
2674
2674
}
2675
2675
@@ -2730,7 +2730,7 @@ fn parse_comparison_expression(
2730
2730
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2731
2731
// Expression valid
2732
2732
for expected_type in expected_rhs_types. iter ( ) {
2733
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2733
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2734
2734
continue ;
2735
2735
}
2736
2736
@@ -2791,7 +2791,7 @@ fn parse_comparison_expression(
2791
2791
// Check if RHS expr can be implicit casted to Expected LHS type to make this
2792
2792
// Expression valid
2793
2793
for expected_type in expected_rhs_types. iter ( ) {
2794
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2794
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2795
2795
continue ;
2796
2796
}
2797
2797
@@ -2871,7 +2871,7 @@ fn parse_contains_expression(
2871
2871
2872
2872
// Check if can perform the operator with additional implicit casting
2873
2873
for expected_type in expected_rhs_types. iter ( ) {
2874
- if !expected_type. has_implicit_cast_from ( & lhs ) {
2874
+ if !expected_type. has_implicit_cast_from ( & rhs ) {
2875
2875
continue ;
2876
2876
}
2877
2877
@@ -3179,7 +3179,7 @@ fn parse_term_expression(
3179
3179
// Expression valid
3180
3180
let expected_lhs_types = rhs_type. can_perform_add_op_with ( ) ;
3181
3181
for expected_type in expected_lhs_types. iter ( ) {
3182
- if !expected_type. has_implicit_cast_from ( & rhs ) {
3182
+ if !expected_type. has_implicit_cast_from ( & lhs ) {
3183
3183
continue ;
3184
3184
}
3185
3185
@@ -3251,7 +3251,7 @@ fn parse_term_expression(
3251
3251
// Expression valid
3252
3252
let expected_lhs_types = rhs_type. can_perform_sub_op_with ( ) ;
3253
3253
for expected_type in expected_lhs_types. iter ( ) {
3254
- if !expected_type. has_implicit_cast_from ( & rhs ) {
3254
+ if !expected_type. has_implicit_cast_from ( & lhs ) {
3255
3255
continue ;
3256
3256
}
3257
3257
@@ -3344,7 +3344,7 @@ fn parse_factor_expression(
3344
3344
// Expression valid
3345
3345
let expected_lhs_types = rhs_type. can_perform_mul_op_with ( ) ;
3346
3346
for expected_type in expected_lhs_types. iter ( ) {
3347
- if !expected_type. has_implicit_cast_from ( & rhs ) {
3347
+ if !expected_type. has_implicit_cast_from ( & lhs ) {
3348
3348
continue ;
3349
3349
}
3350
3350
@@ -3414,7 +3414,7 @@ fn parse_factor_expression(
3414
3414
// Expression valid
3415
3415
let expected_lhs_types = rhs_type. can_perform_div_op_with ( ) ;
3416
3416
for expected_type in expected_lhs_types. iter ( ) {
3417
- if !expected_type. has_implicit_cast_from ( & rhs ) {
3417
+ if !expected_type. has_implicit_cast_from ( & lhs ) {
3418
3418
continue ;
3419
3419
}
3420
3420
@@ -3484,7 +3484,7 @@ fn parse_factor_expression(
3484
3484
// Expression valid
3485
3485
let expected_lhs_types = rhs_type. can_perform_rem_op_with ( ) ;
3486
3486
for expected_type in expected_lhs_types. iter ( ) {
3487
- if !expected_type. has_implicit_cast_from ( & rhs ) {
3487
+ if !expected_type. has_implicit_cast_from ( & lhs ) {
3488
3488
continue ;
3489
3489
}
3490
3490
@@ -3553,7 +3553,7 @@ fn parse_factor_expression(
3553
3553
// Expression valid
3554
3554
let expected_lhs_types = rhs_type. can_perform_caret_op_with ( ) ;
3555
3555
for expected_type in expected_lhs_types. iter ( ) {
3556
- if !expected_type. has_implicit_cast_from ( & rhs ) {
3556
+ if !expected_type. has_implicit_cast_from ( & lhs ) {
3557
3557
continue ;
3558
3558
}
3559
3559
0 commit comments