Skip to content

Commit cd9ef3e

Browse files
committed
test(linter): add test case with function params in no-const-assign (#14674)
fixes [#14675](#14675)
1 parent ae2003c commit cd9ef3e

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)