Skip to content

Commit 30d95fd

Browse files
committed
remove the outdated functor example for exception analysis
1 parent 07c5d85 commit 30d95fd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pages/docs/manual/v12.0.0/editor-plugins.mdx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,7 @@ try (foo()) { | exn => throw(exn) }
112112
```
113113

114114
- Uses of e.g. `List.hd` are interpreted as belonging to the standard library. If you re-define `List` in the local scope, the analysis it will think it's dealing with `List` from the standard library.
115-
- There is no special support for functors. So with `Hashtbl.Make(...)` the builtin model will not apply. So the analysis won't report that the following can throw `Not_found`:
116-
117-
```rescript
118-
module StringHash =
119-
Hashtbl.Make({
120-
include String
121-
let hash = Hashtbl.hash
122-
})
123-
let specializedHash = tbl => StringHash.find(tbl, "abc")
124-
```
115+
- There is no special support for functors.
125116

126117
### Guide
127118

0 commit comments

Comments
 (0)