|
@@ -2001,6 +2001,9 @@ and type_map_declaration ctx e1 el with_type p =
|
|
let el = e1 :: el in
|
|
let el = e1 :: el in
|
|
let el_kv = List.map (fun e -> match fst e with
|
|
let el_kv = List.map (fun e -> match fst e with
|
|
| EBinop(OpArrow,e1,e2) -> e1,e2
|
|
| EBinop(OpArrow,e1,e2) -> e1,e2
|
|
|
|
+ | EDisplay _ ->
|
|
|
|
+ ignore(type_expr ctx e (WithType.with_type tkey));
|
|
|
|
+ error "Expected a => b" (pos e)
|
|
| _ -> error "Expected a => b" (pos e)
|
|
| _ -> error "Expected a => b" (pos e)
|
|
) el in
|
|
) el in
|
|
let el_k,el_v,tkey,tval = if has_type then begin
|
|
let el_k,el_v,tkey,tval = if has_type then begin
|