(sourceTypes, targetTypes, variances)
| 68733 | ]; |
| 68734 | } |
| 68735 | function inferFromTypeArguments(sourceTypes, targetTypes, variances) { |
| 68736 | var count = sourceTypes.length < targetTypes.length ? sourceTypes.length : targetTypes.length; |
| 68737 | for (var i = 0; i < count; i++) { |
| 68738 | if (i < variances.length && (variances[i] & 7 /* VarianceFlags.VarianceMask */) === 2 /* VarianceFlags.Contravariant */) { |
| 68739 | inferFromContravariantTypes(sourceTypes[i], targetTypes[i]); |
| 68740 | } |
| 68741 | else { |
| 68742 | inferFromTypes(sourceTypes[i], targetTypes[i]); |
| 68743 | } |
| 68744 | } |
| 68745 | } |
| 68746 | function inferFromContravariantTypes(source, target) { |
| 68747 | if (strictFunctionTypes || priority & 1024 /* InferencePriority.AlwaysStrict */) { |
| 68748 | contravariant = !contravariant; |
no test coverage detected
searching dependent graphs…