Skip to content

Commit 4cd35cb

Browse files
authored
Add AOC 2024 day6,7,8 (#73)
* Add AOC 2024 day6,7,8 * Add any type * Modify day 8 for faster running time * Add AOC 2024 day9,10,11
1 parent e00eae4 commit 4cd35cb

File tree

2 files changed

+606
-4
lines changed

2 files changed

+606
-4
lines changed

src/typing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ let _validateIRQuery = (schema, cseMap, varMap, nonEmptyGuarantees, q) => {
11051105
} else if (q.op === "count") {
11061106
// As long as the argument is valid, it doesn't matter what type it is.
11071107
return {type: types.u32, props: props};
1108-
} else if (q.op === "all") {
1108+
} else if (q.op === "all" || q.op === "any") {
11091109
if (!isUnknown(argType) && !isBoolean(argType))
11101110
throw new Error(`Unable to use "all" operator on non-boolean type. Got: ${prettyPrintType(argType)}`);
11111111
// As long as the argument is valid, it doesn't matter what type it is.

0 commit comments

Comments
 (0)