(source *Type, target *Type)
| 1159 | } |
| 1160 | |
| 1161 | func tupleTypesDefinitelyUnrelated(source *Type, target *Type) bool { |
| 1162 | s := source.TargetTupleType() |
| 1163 | t := target.TargetTupleType() |
| 1164 | return t.combinedFlags&ElementFlagsVariadic == 0 && t.minLength > s.minLength || |
| 1165 | t.combinedFlags&ElementFlagsVariable == 0 && (s.combinedFlags&ElementFlagsVariable != 0 || t.fixedLength < s.fixedLength) |
| 1166 | } |
| 1167 | |
| 1168 | func (c *Checker) isTupleTypeStructureMatching(t1 *Type, t2 *Type) bool { |
| 1169 | if c.getTypeReferenceArity(t1) != c.getTypeReferenceArity(t2) { |
no test coverage detected