Merge pull request #70 from whitequark/master

Don't execute all phrases twice on >=4.02
This commit is contained in:
Jérémie Dimino 2014-05-12 11:27:55 +01:00
commit 6e52edc81c
1 changed files with 4 additions and 3 deletions

View File

@ -346,9 +346,10 @@ let check_phrase phrase =
with_default_loc loc
(fun () ->
Str.eval
(Exp.letmodule (with_loc loc "_")
(Mod.structure (item :: items))
(Exp.construct unit None)))
(Exp.fun_ "" None (Pat.construct unit None)
(Exp.letmodule (with_loc loc "_")
(Mod.structure (item :: items))
(Exp.construct unit None))))
in
#endif
let check_phrase = Ptop_def [top_def] in