Skip to content

Commit a2c20c5

Browse files
committed
test(linter): add test case with function params in no-const-assign
1 parent f4beec1 commit a2c20c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/oxc_linter/src/rules/eslint/no_const_assign.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ fn test() {
108108
("await using x = foo();", None),
109109
("using x = foo(); bar(x);", None),
110110
("await using x = foo(); bar(x);", None),
111+
("type t = (a, ...b) => void", None),
111112
];
112113

113114
let fail = vec![

0 commit comments

Comments
 (0)