We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15b6eca commit bc90fe4Copy full SHA for bc90fe4
jscomp/ml/variant_coercion.ml
@@ -1,12 +1,5 @@
1
(* TODO: Improve error messages? Say why we can't coerce. *)
2
3
-let check_constructors (constructors : Types.constructor_declaration list) check
4
- =
5
- List.for_all
6
- (fun (c : Types.constructor_declaration) ->
7
- check c.cd_args (Ast_untagged_variants.process_tag_type c.cd_attributes))
8
- constructors
9
-
10
(* Right now we only allow coercing to primitives string/int/float *)
11
let can_coerce_path (path : Path.t) =
12
Path.same path Predef.path_string
0 commit comments