Builtins rewrite with type parameter inference; Small integer math optimizations; Switchify

This commit is contained in:
dcodeIO
2018-01-10 13:09:05 +01:00
parent 0de05b543b
commit fc777b3a89
64 changed files with 4894 additions and 1620 deletions

View File

@ -25,8 +25,8 @@ export function test(animal: Animal<f64>): Animal<f64> {
animal.three;
animal.one = 0 + 1;
animal.two = 1 + 1;
animal.three = 1 + 1 + 1;
animal.two = 1 + 1; // checks overflow
animal.three = 1 + 1 + 1; // checks overflow (once)
var ptr = changetype<usize>(animal);
var cls = changetype<Animal<f64>>(ptr);