瀏覽代碼

remove unnecessary `type_access` recursive call

The `EConst` case would go to `type_ident` anyway.
Simon Krajewski 9 年之前
父節點
當前提交
7967b15692
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2586,7 +2586,7 @@ and handle_efield ctx e p mode =
 				| [] -> assert false
 				| (name,flag,p) :: path ->
 					try
-						fields path (type_access ctx (EConst (Ident name)) p)
+						fields path (type_ident ctx name p)
 					with
 						Error (Unknown_ident _,p2) as e when p = p2 ->
 							try