Branch: Tag:

2022-03-10

2022-03-10 09:37:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Improved type for predef::`+().

The type resulting from adding strings with integers and/or floats
should now be reasonably correct.

Also adds a few new type macros.

8438:   ]])   test_eq(sprintf("%O", typeof(0.0)),"float")   test_eq(sprintf("%O", typeof(all_constants()["all_constants"])),"mixed") - test_true(typeof("hej"+3) >= typeof("hej3")) + dnl The following does test not currently work as typeof("hej3") includes + dnl character values between '4' and 'd'. Test the parts instead. + dnl test_true(typeof("hej"+3) >= typeof("hej3")) + test_true(typeof("hej"+3) >= typeof("hej")) + test_true(typeof("hej"+3) >= typeof("3"))      // _typeof   test_eq(sprintf("%O", _typeof(1)),"int(1)")