Allow use of declared parameters within parameters
Allow this node : node f<<m:int; t1: int^m>>(a:int^m) = (o:int^m) let o = map<<m>> (+)(a, t1); tel
This commit is contained in:
parent
c5c5654068
commit
e0bbc838d5
1 changed files with 1 additions and 1 deletions
|
@ -1213,7 +1213,7 @@ let typing_contract cenv h contract =
|
|||
|
||||
let build_node_params cenv l =
|
||||
let check_param env p =
|
||||
let ty = check_type cenv p.p_type in
|
||||
let ty = check_type env p.p_type in
|
||||
let p = { p with p_type = ty } in
|
||||
let n = Names.local_qn p.p_name in
|
||||
p, QualEnv.add n ty env
|
||||
|
|
Loading…
Reference in a new issue