Explorar o código

do not replace interfaces with other interfaces

Simon Krajewski %!s(int64=9) %!d(string=hai) anos
pai
achega
c74f7be349
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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