Branch: Tag:

2008-05-22

2008-05-22 14:39:15 by Martin Stjernholm <mast@lysator.liu.se>

Another incompatibility due to improved type checking. This one is a
more intricate effect of better type inference.

I suggest all type errors are simply reduced to warnings in compat
mode, regardless of compat level.

Rev: src/testsuite.in:1.820

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.819 2008/05/21 21:15:59 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.820 2008/05/22 14:39:15 mast Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
593:      test_compile_error([[class F {inherit master()->dirnode;};]]);    + test_program_equal([[ + #pike 7.6 +  string a() +  { +  string|array(string) res = ({"spud"}); +  return res + ({}); +  } + ]], ({"spud"})) +    // Warnings      test_compile_warning([[ int *a ]])