(l: BaseRoot, r: BaseRoot)
| 387 | const maxOpenArgumentsLength = 1_000_000 |
| 388 | |
| 389 | const mayExtend = (l: BaseRoot, r: BaseRoot): boolean => { |
| 390 | if (!l.hasAlias && !r.hasAlias) return false |
| 391 | const intersection = l.intersect(r, false) |
| 392 | return ( |
| 393 | !(intersection instanceof Disjoint) && |
| 394 | isMutuallySimulated(l, intersection, false) |
| 395 | ) |
| 396 | } |
| 397 | |
| 398 | // as arktype's writeInvalidGenericArgCountMessage writes it for an |
| 399 | // instantiation in a string, like box<a, b>, which is checked as it's parsed |
no test coverage detected