We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a3dff4 commit 482c09cCopy full SHA for 482c09c
CHANGELOG.md
@@ -12,6 +12,9 @@
12
13
# 11.0.0-beta.3 (Unreleased)
14
15
+#### :rocket: New Feature
16
+- Untagged variants: consider regexp as an object type. https://github.com/rescript-lang/rescript-compiler/pull/6296
17
+
18
# 11.0.0-beta.2
19
20
#### :rocket: New Feature
jscomp/ml/ast_untagged_variants.ml
@@ -117,7 +117,7 @@ let type_is_builtin_object (t : Types.type_expr) =
117
match t.desc with
118
| Tconstr (path, _, _) ->
119
let name = Path.name path in
120
- name = "Js.Dict.t" || name = "Js_dict.t"
+ name = "Js.Dict.t" || name = "Js_dict.t" || name = "Js.Re.t" || name = "RescriptCore.Re.t"
121
| _ -> false
122
123
let get_block_type ~env (cstr : Types.constructor_declaration) :
0 commit comments