ソースを参照

propagate expected type for generic expr access typing

Dan Korostelev 3 年 前
コミット
6f0b94f582
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/typing/typer.ml

+ 2 - 2
src/typing/typer.ml

@@ -599,9 +599,9 @@ and type_access ctx e p mode with_type =
 	| EArray (e1,e2) ->
 	| EArray (e1,e2) ->
 		type_array_access ctx e1 e2 p mode
 		type_array_access ctx e1 e2 p mode
 	| EDisplay (e,dk) ->
 	| EDisplay (e,dk) ->
-		AKExpr (TyperDisplay.handle_edisplay ctx e dk mode WithType.value)
+		AKExpr (TyperDisplay.handle_edisplay ctx e dk mode with_type)
 	| _ ->
 	| _ ->
-		AKExpr (type_expr ~mode ctx (e,p) WithType.value)
+		AKExpr (type_expr ~mode ctx (e,p) with_type)
 
 
 and type_array_access ctx e1 e2 p mode =
 and type_array_access ctx e1 e2 p mode =
 	let e1 = type_expr ctx e1 WithType.value in
 	let e1 = type_expr ctx e1 WithType.value in