Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Feb 6, 2024
1 parent 86cebca commit bbd726b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/filters/defaultArguments.ml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ let add_opt com block pos (var,opt) =
let rec change_func com cl cf =
List.iter (change_func com cl) cf.cf_overloads;

match cf.cf_kind, follow cf.cf_type with
match cf.cf_kind, follow_with_coro cf.cf_type with
| _ when has_class_field_flag cf CfPostProcessed ->
()
| Var _, _ | Method MethDynamic, _ ->
()
| _, TFun(args, ret) ->
(* COROTODO: is this really the same case? *)
| _, NotCoro (TFun(args, ret))
| _, Coro (args,ret) ->
let is_ctor = cf.cf_name = "new" in
let basic = com.basic in

Expand Down

0 comments on commit bbd726b

Please sign in to comment.