fix: dams
This commit is contained in:
parent
d7bc456f99
commit
73e7dfafcd
|
@ -186,10 +186,11 @@ let analyse_tds_fonction maintds (AstSyntax.Fonction(t, str, l_typstr, bloc)) =
|
|||
| None ->
|
||||
begin
|
||||
let info = Tds.InfoVar(str, Undefined, 0, "") in
|
||||
let tds_bloc = List.fold_right (
|
||||
fun (_, nom) qres ->
|
||||
ajouter qres nom (info_to_info_ast (Tds.InfoVar(nom, Undefined, 0, "")))
|
||||
) l_typstr (creerTDSFille maintds) in
|
||||
let tds_bloc = maintds in (* tds_bloc doit inclure les nouveaux éléments passés en paramètre *)
|
||||
let unit_l = (List.map (
|
||||
fun (_, nom) ->
|
||||
ajouter tds_bloc nom (info_to_info_ast (Tds.InfoVar(nom, Undefined, 0, "")))
|
||||
) l_typstr) in
|
||||
let new_bloc = analyse_tds_bloc tds_bloc bloc in
|
||||
let nl_typinfo = List.map (
|
||||
fun (t, str2) ->
|
||||
|
|
Loading…
Reference in a new issue