Fix "" + list_expr producing list_expr

The type checks were not strong enough. While on it, strengthen other similar checks as well.

Reported by @Tonaie. Fixes #13.
This commit is contained in:
Sei Lisa
2020-04-23 13:39:34 +02:00
parent 4d75f0f792
commit 0affbf13dd
5 changed files with 68 additions and 9 deletions

View File

@@ -24,6 +24,21 @@ default
a = b + a;
a = 1 + a;
a = b + a;
a = a + (llGetPhysicsMaterial() + 0);
a = a + (llGetPhysicsMaterial() + ((float)0));
a = a + (llGetPhysicsMaterial() + "");
a = a + llGetPhysicsMaterial();
a = a + (0 + llGetPhysicsMaterial());
a = a + (((float)0) + llGetPhysicsMaterial());
a = a + ("" + llGetPhysicsMaterial());
a = a + llGetPhysicsMaterial();
a = a + llGetPhysicsMaterial();
a = a + 0;
a = a + ((float)0);
a = a + "";
a = a + 0;
a = a + ((float)0);
a = a + "";
llParticleSystem(a);
}
}