xref: /aosp_15_r20/external/skia/resources/sksl/errors/AssignmentTypeMismatch.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1void vardecl_assign_float_to_int()   { int x = 1.0; }
2void statement_assign_float_to_int() { int x; x = 1.0; }
3void times_equals_int3_by_float()    { int3 x = int3(0); x *= 1.0; }
4void function_ref_in_comma_expr()    { int x = (radians, 1); }
5void type_ref_in_comma_expr()        { int x = (bool4, 1); }
6int function_ref_in_global_variable = mix;
7float3x3 type_ref_in_global_variable = float3x3;
8
9
10/*%%*
11expected 'int', but found 'float'
12type mismatch: '=' cannot operate on 'int', 'float'
13type mismatch: '*=' cannot operate on 'int3', 'float'
14expected '(' to begin function call
15expected '(' to begin constructor invocation
16expected '(' to begin function call
17expected '(' to begin constructor invocation
18*%%*/
19