File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6ec402d4a66d2c0306e525e1e124cc38ecbeb421
2
+ refs/heads/master: fc8b5155a87b5a9ae2313f7282cab9893f4b9f3e
Original file line number Diff line number Diff line change @@ -324,7 +324,11 @@ let rec lookup_type_by_name
324
324
log cx " args: %s"
325
325
(Fmt. fmt_to_str Ast. fmt_app_args args);
326
326
end;
327
- let ty = rebuild_ty_under_params cx None ty params args true in
327
+ let ty =
328
+ rebuild_ty_under_params
329
+ ~node_id: (id_of_scope (List. hd scopes))
330
+ cx None ty params args true
331
+ in
328
332
iflog cx (fun _ -> log cx " --- lookup_type_by_name %a ==> %a"
329
333
Ast. sprintf_name name
330
334
Ast. sprintf_ty ty);
Original file line number Diff line number Diff line change @@ -1043,6 +1043,7 @@ let rec pretty_ty_str (cx:ctxt) (fallback:(Ast.ty -> string)) (ty:Ast.ty) =
1043
1043
;;
1044
1044
1045
1045
let rec rebuild_ty_under_params
1046
+ ?node_id :id_opt
1046
1047
(cx :ctxt )
1047
1048
(src_tag :Ast.ty_tag option )
1048
1049
(ty :Ast.ty )
@@ -1052,7 +1053,7 @@ let rec rebuild_ty_under_params
1052
1053
: Ast.ty =
1053
1054
if (Array. length params) <> (Array. length args)
1054
1055
then
1055
- err None
1056
+ err id_opt
1056
1057
" mismatched type-params: %s has %d param(s) but %d given"
1057
1058
(pretty_ty_str cx (Ast. sprintf_ty () ) ty)
1058
1059
(Array. length params)
You can’t perform that action at this time.
0 commit comments