• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1### Compilation failed:
2
3error: 3: '++' cannot operate on 'float4x4'
4void preincrement_matrix()  { float4x4 x = float4x4(1); ++x; }
5                                                        ^^^
6error: 4: '--' cannot operate on 'float3'
7void predecrement_vector()  { float3 x = float3(1); --x; }
8                                                    ^^^
9error: 5: '++' cannot operate on 'float4x4'
10void postincrement_matrix() { float4x4 x = float4x4(1); x++; }
11                                                        ^^^
12error: 6: '--' cannot operate on 'float3'
13void postdecrement_vector() { float3 x = float3(1); x--; }
14                                                    ^^^
15error: 7: '!' cannot operate on 'int'
16void not_integer()          { int x = !12; }
17                                      ^^^
18error: 8: '+' cannot operate on 'Foo'
19void positive_struct()      { Foo x = +bar; }
20                                      ^^^^
21error: 9: '-' cannot operate on 'Foo'
22void negative_struct()      { Foo x = -bar; }
23                                      ^^^^
247 errors
25