Browse Source

remove unnecessary `type_access` recursive call

The `EConst` case would go to `type_ident` anyway.
Simon Krajewski 9 years ago
parent
commit
7967b15692
1 changed files with 1 additions and 1 deletions
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

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