diff --git a/CHANGELOG.md b/CHANGELOG.md index c3917f4045..1aff3db4f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,10 @@ - Fix `%external` extension. https://github.com/rescript-lang/rescript/pull/7272 - Fix issue with type environment for unified ops. https://github.com/rescript-lang/rescript/pull/7277 +#### :house: Internal + +- Remove ignore in res_scanner.ml . https://github.com/rescript-lang/rescript/pull/7280 + # 12.0.0-alpha.8 #### :bug: Bug fix diff --git a/compiler/syntax/src/res_scanner.ml b/compiler/syntax/src/res_scanner.ml index 613d273d6c..3803d2d132 100644 --- a/compiler/syntax/src/res_scanner.ml +++ b/compiler/syntax/src/res_scanner.ml @@ -257,13 +257,13 @@ let scan_number scanner = 8) | _ -> 10 in - ignore (scan_digits scanner ~base); + let _ : bool = scan_digits scanner ~base in (* *) let is_float = if '.' == scanner.ch then ( next scanner; - ignore (scan_digits scanner ~base); + let _ : bool = scan_digits scanner ~base in true) else false in