(t1 *Type, t2 *Type)
| 1166 | } |
| 1167 | |
| 1168 | func (c *Checker) isTupleTypeStructureMatching(t1 *Type, t2 *Type) bool { |
| 1169 | if c.getTypeReferenceArity(t1) != c.getTypeReferenceArity(t2) { |
| 1170 | return false |
| 1171 | } |
| 1172 | for i, e := range t1.TargetTupleType().elementInfos { |
| 1173 | if e.flags&ElementFlagsVariable != t2.TargetTupleType().elementInfos[i].flags&ElementFlagsVariable { |
| 1174 | return false |
| 1175 | } |
| 1176 | } |
| 1177 | return true |
| 1178 | } |
| 1179 | |
| 1180 | func (c *Checker) isTypeOrBaseIdenticalTo(s *Type, t *Type) bool { |
| 1181 | if t == c.missingType { |
no test coverage detected