xref: /aosp_15_r20/external/skia/resources/sksl/errors/BinaryTypeMismatch.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1void int_times_bool()      { float x = 3 * true; }
2void int_or_float()        { bool x = 1 || 2.0; }
3void float2_eq_int()       { bool x = float2(0) == 0; }
4void float2_neq_int()      { bool x = float2(0) != 0; }
5void int_logicalxor_int()  { bool x = 8 ^^ 6; }
6
7void float2_lt_float2()    { bool x = float2(0) < float2(1); }
8void float2_lt_float()     { bool x = float2(0) < 0.0; }
9void float_lt_float2()     { bool x = 0.0 < float2(0); }
10
11
12/*%%*
13type mismatch: '*' cannot operate on 'int', 'bool'
14type mismatch: '||' cannot operate on 'int', 'float'
15type mismatch: '==' cannot operate on 'float2', 'int'
16type mismatch: '!=' cannot operate on 'float2', 'int'
17type mismatch: '^^' cannot operate on 'int', 'int'
18type mismatch: '<' cannot operate on 'float2', 'float2'
19type mismatch: '<' cannot operate on 'float2', 'float'
20type mismatch: '<' cannot operate on 'float', 'float2'
21*%%*/
22