Branch: Tag:

2002-11-28

2002-11-28 13:05:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

The ::-operator now checks if the symbol actually exists...

Rev: src/testsuite.in:1.569

1: - test_true([["$Id: testsuite.in,v 1.568 2002/11/26 18:44:05 nilsson Exp $"]]); + test_true([["$Id: testsuite.in,v 1.569 2002/11/28 13:05:08 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
1050:    return ({global::this_program,    A::this_program, // Works, but not really useful.    B::this_program, // Ditto. -  ::this_program, // Should perhaps be an error? /mast +     this_program});    }    }    }    int a() { -  return equal (A()->B()->f(), ({object_program (this_object()), A, A.B, 0, A.B})); +  return equal (A()->B()->f(), ({object_program (this_object()), A, A.B, A.B}));    }   ]])    -  + test_compile_error([[ +  mixed x() { +  return ::x; +  } + ]]) +    test_program([[    class A {    class B {