Nicolas Cannasse 16 年之前
父節點
當前提交
64de1a83c1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genswf9.ml

+ 1 - 1
genswf9.ml

@@ -734,7 +734,7 @@ let gen_access ctx e (forset : 'a) : 'a access =
 		| Some t -> VCast (id,t)
 		| Some t -> VCast (id,t)
 		| None -> 
 		| None -> 
 		match follow e1.etype, follow e.etype with
 		match follow e1.etype, follow e.etype with
-		| _ , TFun _ -> VCast(id,classify ctx e.etype)
+		| _ , TFun _ when not ctx.for_call -> VCast(id,classify ctx e.etype)
 		| TEnum _, _ -> VId id
 		| TEnum _, _ -> VId id
 		| TInst (_,tl), et ->
 		| TInst (_,tl), et ->
 			(* if the return type is one of the type-parameters, then we need to cast it *)
 			(* if the return type is one of the type-parameters, then we need to cast it *)