Added check for unicity of init
This commit is contained in:
parent
6332ac7a10
commit
41d2a1e3cb
1 changed files with 2 additions and 2 deletions
|
@ -240,8 +240,8 @@ let check_init loc init lin =
|
|||
| Lno_init -> lin
|
||||
| Linit_var r ->
|
||||
(match lin with
|
||||
| Lat r1 when r = r1 -> Ltop
|
||||
| Lvar r1 when r = r1 -> Ltop
|
||||
| Lat r1 when r = r1 -> check_fresh_lin_var loc lin; Ltop
|
||||
| Lvar r1 when r = r1 -> check_fresh_lin_var loc lin; Ltop
|
||||
| _ -> message loc (Ewrong_init (r, lin)))
|
||||
| Linit_tuple _ -> assert false
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue