fez-lisp 1.5.57 → 1.5.59
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/.vscode/settings.json +1 -0
- package/lib/baked/std.js +1 -1
- package/package.json +1 -1
- package/src/check.js +4 -4
package/package.json
CHANGED
package/src/check.js
CHANGED
@@ -117,7 +117,7 @@ const getScopeNames = (scope) => {
|
|
117
117
|
}
|
118
118
|
const withScope = (name, scope) => {
|
119
119
|
const chain = getScopeNames(scope)
|
120
|
-
return `${chain
|
120
|
+
return `${chain.length === 1 ? '· ' : ''}${chain
|
121
121
|
.map((x) => (Number.isInteger(+x) ? '~' : x))
|
122
122
|
.join(' ')} ${name}`
|
123
123
|
}
|
@@ -1397,7 +1397,7 @@ export const typeCheck = (ast) => {
|
|
1397
1397
|
fn[STATS][RETURNS][1] !== PREDICATE
|
1398
1398
|
) {
|
1399
1399
|
warningStack.add(
|
1400
|
-
`${name} ends in (${PREDICATE_SUFFIX}) and is expected to return (Predicate) but it doesn't (
|
1400
|
+
`${name} ends in (${PREDICATE_SUFFIX}) and is expected to return (Predicate) but it doesn't (check #25)`
|
1401
1401
|
)
|
1402
1402
|
}
|
1403
1403
|
env[name][STATS][TYPE_PROP][0] =
|
@@ -1439,7 +1439,7 @@ export const typeCheck = (ast) => {
|
|
1439
1439
|
env[name][STATS][RETURNS][1] !== PREDICATE
|
1440
1440
|
) {
|
1441
1441
|
warningStack.add(
|
1442
|
-
`${name} ends in (${PREDICATE_SUFFIX}) and is expected to return (Predicate) but it doesn't (
|
1442
|
+
`${name} ends in (${PREDICATE_SUFFIX}) and is expected to return (Predicate) but it doesn't (check #7)`
|
1443
1443
|
)
|
1444
1444
|
} else if (
|
1445
1445
|
!isPredicate &&
|
@@ -1587,7 +1587,7 @@ export const typeCheck = (ast) => {
|
|
1587
1587
|
fn[STATS][RETURNS][1] !== PREDICATE
|
1588
1588
|
) {
|
1589
1589
|
warningStack.add(
|
1590
|
-
`${name} ends in (${PREDICATE_SUFFIX}) and is expected to return (Predicate) but it doesn't (
|
1590
|
+
`${name} ends in (${PREDICATE_SUFFIX}) and is expected to return (Predicate) but it doesn't (check #25)`
|
1591
1591
|
)
|
1592
1592
|
}
|
1593
1593
|
env[name][STATS][TYPE_PROP] = fn[STATS][RETURNS]
|