xref: /aosp_15_r20/external/skia/resources/sksl/errors/BadFieldAccess.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1struct S { float f; };
2
3void not_a_field()    { S s; s.missing = 123; }
4void not_a_function() { S s; s.f(); }
5void not_a_bvec()     { S s; s.f = bool3(true); }
6void not_a_struct()   { S s; s.f.missing; }
7void not_an_array()   { S s; s.f[0]; }
8
9/*%%*
10type 'S' does not have a field named 'missing'
11not a function
12type mismatch: '=' cannot operate on 'float', 'bool3'
13too many components in swizzle mask
14expected array, but found 'float'
15*%%*/
16