(types)
| 51 | }; |
| 52 | } |
| 53 | function computedUnion(types) { |
| 54 | return function(self, args) { |
| 55 | var union = new infer.AVal; |
| 56 | for (var i = 0; i < types.length; i++) unwrapType(types[i], self, args).propagate(union); |
| 57 | union.maxWeight = 1e5; |
| 58 | return union; |
| 59 | }; |
| 60 | } |
| 61 | function computedArray(inner) { |
| 62 | return function(self, args) { |
| 63 | return new infer.Arr(inner(self, args)); |
no test coverage detected