Branch: Tag:

2015-04-13

2015-04-13 14:20:49 by Martin Nilsson <nilsson@opera.com>

#pragma strict_stypes bug in switch cases.

9226:    switch (i) {case 1..: return 2; case ..-1: return 1; case 0: return 3;}   ]], ({1, 1, 1, 3, 2, 2, 2}))    + test_any([[ + #pragma strict_types +  int(-1..1) i = [int(0..1)]random(1); +  switch(i) +  { +  case 0: return 3; +  case 1: return 3; +  case -1: return 3; +  } +  return 0; + ]], 3) +  +    // Breaks and continues with labels   test_compile_error([[break;]])   test_compile_error([[continue;]])