Skip to content

Commit

Permalink
Boxed typedef forced fix of [: ... :] pattern
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gcaml3101@8802 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
camlspotter committed Jan 31, 2008
1 parent 23e46ae commit da1dee0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified boot/ocamlc
Binary file not shown.
2 changes: 1 addition & 1 deletion gcamllib/Makefile
Expand Up @@ -25,7 +25,7 @@ OPTCOMPFLAGS=-warn-error Ag -nostdlib -I ../stdlib -I ../toplevel -I ../typing
CAMLDEP=../boot/ocamlrun ../tools/ocamldep

# OBJS=gcaml.cmo safevio.cmo gprint.cmo plus.cmo rec.cmo cplus.cmo
OBJS=gcaml.cmo garith.cmo safevio.cmo gprint.cmo plus.cmo rec.cmo cplus.cmo generic.cmo
OBJS=gcaml.cmo garith.cmo safevio.cmo gprint.cmo plus.cmo rec.cmo cplus.cmo generic.cmo gtest.cmo
ALLOBJS=$(OBJS)

all: gcamllib.cma
Expand Down
3 changes: 2 additions & 1 deletion typing/typertype.ml
Expand Up @@ -295,7 +295,8 @@ let pattern_of_type non_linear transl_longident t =
make_pat_construct loc (cstr "Tconstr")
[ make_pat loc (Ppat_tuple
[ make_pat loc Ppat_any; (* ignore path *)
make_pat loc (Ppat_var name) ]);
make_pat_construct loc (cstr "Box")
[make_pat loc (Ppat_var name)] ]);
mktailpat (List.map pattern_of_type ts)]
| Ptyp_lident _ -> assert false
| _ -> raise (Error (loc, Unsupported))
Expand Down

0 comments on commit da1dee0

Please sign in to comment.