xref: /aosp_15_r20/external/skia/resources/sksl/errors/TernaryMismatch.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1void void_function()   {}
2void bool_or_float()   { float x = 5 > 2 ? true : 1.0; }
3void float3_or_float() { float x = 5 > 2 ? float3(1) : 1.0; }
4void void_or_void()    { 5 > 2 ? void_function() : void_function(); }
5
6/*%%*
7ternary operator result mismatch: 'bool', 'float'
8ternary operator result mismatch: 'float3', 'float'
9ternary expression of type 'void' is not allowed
10*%%*/
11