| OLD | NEW |
| (Empty) |
| 1 // Expectation for test: | |
| 2 // main() { | |
| 3 // var x = int.parse('1233'); | |
| 4 // var y = int.parse('1234'); | |
| 5 // var z = int.parse('1236'); | |
| 6 // print(x is num); | |
| 7 // print(y is num); | |
| 8 // print(z is num); | |
| 9 // print(x.clamp(y, z)); | |
| 10 // print(x is num); | |
| 11 // print(y is num); // will be compiled to `true` if we know the type of `y`. | |
| 12 // print(z is num); | |
| 13 // } | |
| 14 | |
| 15 function() { | |
| 16 var x = P.int_parse("1233", null, null), y = P.int_parse("1234", null, null),
z = P.int_parse("1236", null, null); | |
| 17 P.print(typeof x === "number"); | |
| 18 P.print(typeof y === "number"); | |
| 19 P.print(typeof z === "number"); | |
| 20 P.print(J.clamp$2$n(x, y, z)); | |
| 21 P.print(true); | |
| 22 P.print(true); | |
| 23 P.print(true); | |
| 24 } | |
| OLD | NEW |