|
@@ -1948,7 +1948,8 @@ let generate_class ctx c =
|
|
| Some (csup,_) ->
|
|
| Some (csup,_) ->
|
|
requires_constructor := false;
|
|
requires_constructor := false;
|
|
print ctx "extends %s " (s_path ctx csup.cl_path csup.cl_extern c.cl_pos));
|
|
print ctx "extends %s " (s_path ctx csup.cl_path csup.cl_extern c.cl_pos));
|
|
- (match c.cl_implements with
|
|
|
|
|
|
+ let implements = ExtList.List.unique ~cmp:(fun a b -> (fst a).cl_path = (fst b).cl_path) c.cl_implements in
|
|
|
|
+ (match implements with
|
|
| [] -> ()
|
|
| [] -> ()
|
|
| l ->
|
|
| l ->
|
|
spr ctx (if c.cl_interface then "extends " else "implements ");
|
|
spr ctx (if c.cl_interface then "extends " else "implements ");
|