Fix parser bug where list = anytype was accepted. Fix also the test suite.

This commit is contained in:
Sei Lisa 2015-06-16 04:16:59 +02:00
parent cdc3a63179
commit bfabcd16db
2 changed files with 4 additions and 8 deletions

View file

@ -229,7 +229,7 @@ class Test02_Parser(UnitTestCase):
1+([]+(integer)~1);
list a;
float f;
a = 3; a += 3;
a = (list)3; a += 3;
f += 4; f += -4.3;
integer i;
i *= 1.3;
@ -297,7 +297,7 @@ class Test03_Optimizer(UnitTestCase):
integer j = 3||4&&5|6^7&8.==9!=10.e+01f<11<=12>13.>=14<<15>>16==0&&3==
++f-f++-(3 + llFloor(f)<<3 << 32) - 2 - 0;
integer k = 2 + (3 * 25 - 4)/2 % 9;
a = 3; a += !3;
a = (list)3; a += !3;
f += 4; f += -4.3;
integer i;
i = llGetListLength(L);