Skip to content

Commit dd721ca

Browse files
committed
Reactivate unused attribute check for @int
1 parent 6ec02b1 commit dd721ca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
- Fix unhandled cases for exotic idents (allow to use exotic PascalCased identifiers for types). https://github.com/rescript-lang/rescript-compiler/pull/6777
3131
- PPX v4: mark props type in externals as `@live` to avoid dead code warnings for prop fields in the editor tooling. https://github.com/rescript-lang/rescript-compiler/pull/6796
3232
- Fix unused attribute check for `@as`. https://github.com/rescript-lang/rescript-compiler/pull/6795
33+
- Fix unused attribute check for `@as`. https://github.com/rescript-lang/rescript-compiler/pull/6795
34+
- Reactivate unused attribute check for `@int`. https://github.com/rescript-lang/rescript-compiler/pull/6802
3335

3436
#### :house: Internal
3537

jscomp/frontend/bs_ast_invariant.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@
2828
*)
2929
let is_bs_attribute txt =
3030
match txt with
31-
(* TODO #6636: "int" *)
32-
| "as" | "bs" | "config" | "ignore" | "optional" | "string" | "uncurry"
33-
| "unwrap" ->
31+
| "as" | "bs" | "config" | "ignore" | "optional" | "string" | "int"
32+
| "uncurry" | "unwrap" ->
3433
true
3534
| _ -> false
3635

0 commit comments

Comments
 (0)