diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-02-01 06:52:39 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-02-01 06:52:39 +0000 |
commit | 9ac4b7df38db97c396b32b9a14537c155d9389ff (patch) | |
tree | e7f74d7610b4360a1d50e362fd165baa02c4eb94 /otherlibs/labltk/support/widget.ml | |
parent | af07b519959fe8ceb982d037ec0d6d934e6d512f (diff) |
new labels in List, Set, Unix and ThreadUnix
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2775 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/support/widget.ml')
-rw-r--r-- | otherlibs/labltk/support/widget.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/labltk/support/widget.ml b/otherlibs/labltk/support/widget.ml index 1da823ce8..2174fc3cb 100644 --- a/otherlibs/labltk/support/widget.ml +++ b/otherlibs/labltk/support/widget.ml @@ -165,11 +165,11 @@ let check_class w clas = match w with Untyped _ -> () (* assume run-time check by tk*) | Typed(_,c) -> - if List.mem clas key:c then () + if List.mem clas item:c then () else raise (IllegalWidgetType c) (* Checking membership of constructor in subtype table *) let chk_sub errname table c = - if List.mem table key:c then () + if List.mem table item:c then () else raise (Invalid_argument errname) |