Skip to content

Commit 249515b

Browse files
Jantherfvictorio
andauthored
Update src/slang-nodes/MultiplicativeExpression.ts
Co-authored-by: Franco Victorio <[email protected]>
1 parent e89d4fa commit 249515b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/slang-nodes/MultiplicativeExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class MultiplicativeExpression extends SlangNode {
5757

5858
this.updateMetadata(this.leftOperand, this.rightOperand);
5959

60-
const tryToHug = hugFunctions[this.operator as '*' | '/' | '%'];
60+
const tryToHug = hugFunctions[this.operator as keyof typeof hugFunctions];
6161

6262
if (tryToHug === undefined) {
6363
throw new Error(`Unexpected operator: ${this.operator}`);

0 commit comments

Comments
 (0)