2
0
Эх сурвалжийг харах

handle @:generic inline methods (closes #2158)

Simon Krajewski 12 жил өмнө
parent
commit
b6ff7ed000
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      typer.ml

+ 3 - 0
typer.ml

@@ -3136,6 +3136,9 @@ and build_call ctx acc el (with_type:with_type) p =
 		er,fun () -> ctx.this_stack <- List.tl ctx.this_stack
 	in
 	match acc with
+	| AKInline (ethis,f,fmode,t) when Meta.has Meta.Generic f.cf_meta ->
+		let el,t,e = type_generic_function ctx (ethis,f) el with_type p in
+		make_call ctx e el t p
 	| AKInline (ethis,f,fmode,t) ->
 		let params, tfunc = (match follow t with
 			| TFun (args,r) -> unify_call_params ctx (fopts ethis.etype f) el args r p true