Skip to content

Commit 25b1461

Browse files
committed
match for specific exception
1 parent 92b81b8 commit 25b1461

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#### :bug: Bug Fix
1414

1515
- Fixed issue with coercions sometimes raising a `Not_found` instead of giving a proper error message. https://github.com/rescript-lang/rescript-compiler/pull/6574
16-
17-
#### :bug: Bug Fix
1816
- Fix issue with recursive modules and uncurried. https://github.com/rescript-lang/rescript-compiler/pull/6575
1917

2018
# 11.0.0

jscomp/ml/ctype.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3907,7 +3907,7 @@ let subtype_error env trace =
39073907
let extract_concrete_typedecl_opt env t =
39083908
match extract_concrete_typedecl env t with
39093909
| v -> Some v
3910-
| exception _ -> None
3910+
| exception Not_found -> None
39113911

39123912
let rec subtype_rec env trace t1 t2 cstrs =
39133913
let t1 = repr t1 in

0 commit comments

Comments
 (0)