Browse Source

[display] deal with anon FClosure

see #8381
Simon Krajewski 6 years ago
parent
commit
2985c9d828
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/typing/typerDisplay.ml

+ 1 - 1
src/typing/typerDisplay.ml

@@ -70,7 +70,7 @@ let completion_item_of_expr ctx e =
 			in
 			in
 			of_field e origin cf CFSMember make_ci_class_field
 			of_field e origin cf CFSMember make_ci_class_field
 		| TField(_,FEnum(en,ef)) -> of_enum_field e (Self (TEnumDecl en)) ef
 		| TField(_,FEnum(en,ef)) -> of_enum_field e (Self (TEnumDecl en)) ef
-		| TField(e1,FAnon cf) ->
+		| TField(e1,(FAnon cf | FClosure(None,cf))) ->
 			begin match follow e1.etype with
 			begin match follow e1.etype with
 				| TAnon an ->
 				| TAnon an ->
 					let origin = match e1.etype with
 					let origin = match e1.etype with