Browse Source

do not replace interfaces with other interfaces

Simon Krajewski 9 năm trước cách đây
mục cha
commit
c74f7be349
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      filters.ml

+ 1 - 1
filters.ml

@@ -1102,7 +1102,7 @@ let check_remove_metadata ctx t = match t with
 
 let do_the_tivo_thing ctx =
 	let rec get_substitute_class c = match c.cl_dependent with
-		| [({cl_params = []} as c2),[]] when c.cl_interface && c.cl_params = [] && not c.cl_extern && not (Meta.has Meta.Keep c.cl_meta) ->
+		| [({cl_params = []} as c2),[]] when c.cl_interface && not c2.cl_interface && c.cl_params = [] && not c.cl_extern && not (Meta.has Meta.Keep c.cl_meta) ->
 			get_substitute_class c2
 		| _ -> c
 	in