• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1### Compilation failed:
2
3error: 2: ternary operator result mismatch: 'bool', 'float'
4void bool_or_float()   { float x = 5 > 2 ? true : 1.0; }
5                                           ^^^^^^^^^^
6error: 3: ternary operator result mismatch: 'float3', 'float'
7void float3_or_float() { float x = 5 > 2 ? float3(1) : 1.0; }
8                                           ^^^^^^^^^^^^^^^
9error: 4: ternary expression of type 'void' is not allowed
10void void_or_void()    { 5 > 2 ? void_function() : void_function(); }
11                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
123 errors
13