Branch: Tag:

1997-05-22

1997-05-22 23:27:33 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

return on void expressions now gives an error

Rev: src/las.c:1.34
Rev: src/testsuite.in:1.43

1: - test_true([["$Id: testsuite.in,v 1.42 1997/05/20 01:06:45 hubbe Exp $"]]) + test_true([["$Id: testsuite.in,v 1.43 1997/05/22 23:27:33 hubbe Exp $"]])   test_eq(1e1,10.0)   test_eq(1E1,10.0)   test_eq(1e+1,10.0)   test_eq(1.1e1,11.0)   test_eq(1e-1,0.1) -  + test_compile_error([[void foo() { return destruct(this_object()); }]])   test_any([[class foo { constant x=17; }; class bar { inherit foo; constant x=18; }; return bar()->x;]],18)   test_program([[inline string foo(string s){ while(s[0] == ' ' || s[0] == '\t') s = s[1..]; return(s); } string a() { return foo(" bar"); }]])   test_true([[lambda(function f) {return 1;}(object_program(this_object()));]])