fez-lisp 1.6.70 → 1.6.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/check.js +5 -1
package/package.json
CHANGED
package/src/check.js
CHANGED
@@ -886,7 +886,11 @@ const initArrayType = ({ rem, env }) => {
|
|
886
886
|
const ret = initArrayTypeRec({ rem, env })
|
887
887
|
const known = ret.find((x) => x[0] !== ANY && x[0] !== UNKNOWN)
|
888
888
|
const isCollection = ret.length && ret[0] && ret[0][0] === COLLECTION
|
889
|
-
if (
|
889
|
+
if (
|
890
|
+
known &&
|
891
|
+
ret.length &&
|
892
|
+
!ret.some((x) => known[0][0] !== x[0][0] || known[0].length !== x[0].length)
|
893
|
+
) {
|
890
894
|
if (Array.isArray(ret[0][0])) {
|
891
895
|
let head = ret[0][0]
|
892
896
|
ret[0].length = 0
|