1bool different_types() { 2 float2x2 m; 3 float2 v; 4 float f; 5 return v == f || v == m || m == f || 6 f == v || m == v || f == m || 7 v != f || v != m || m != f || 8 f != v || m != v || f != m ; 9} 10 11bool different_matrices() { 12 float2x2 m2; 13 float3x3 m3; 14 return m2 == m3 || m2 != m3; 15} 16 17bool different_vectors() { 18 float2 v2; 19 float3 v3; 20 return v2 == v3 || v2 != v3; 21} 22/*%%* 23type mismatch: '==' cannot operate on 'float2', 'float' 24type mismatch: '==' cannot operate on 'float2', 'float2x2' 25type mismatch: '==' cannot operate on 'float2x2', 'float' 26type mismatch: '==' cannot operate on 'float', 'float2' 27type mismatch: '==' cannot operate on 'float2x2', 'float2' 28type mismatch: '==' cannot operate on 'float', 'float2x2' 29type mismatch: '!=' cannot operate on 'float2', 'float' 30type mismatch: '!=' cannot operate on 'float2', 'float2x2' 31type mismatch: '!=' cannot operate on 'float2x2', 'float' 32type mismatch: '!=' cannot operate on 'float', 'float2' 33type mismatch: '!=' cannot operate on 'float2x2', 'float2' 34type mismatch: '!=' cannot operate on 'float', 'float2x2' 35type mismatch: '==' cannot operate on 'float2x2', 'float3x3' 36type mismatch: '!=' cannot operate on 'float2x2', 'float3x3' 37type mismatch: '==' cannot operate on 'float2', 'float3' 38type mismatch: '!=' cannot operate on 'float2', 'float3' 39*%%*/ 40