Explorar o código

do not use type_expr_with_type on $ identifiers (they are not valid enum ctors and there's a regression in neko.Reflect.deleteField)

Simon Krajewski %!s(int64=13) %!d(string=hai) anos
pai
achega
a88d5368c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -1410,7 +1410,7 @@ and type_expr_with_type_raise ctx e t =
 	| EParenthesis e ->
 		let e = type_expr_with_type_raise ctx e t in
 		mk (TParenthesis e) e.etype p;
-	| ECall (((EConst (Ident s),p) as e),el) ->
+	| ECall (((EConst (Ident s),p) as e),el) when s.[0] <> '$' ->
 		(try
 			ignore(type_ident_raise ~imported_enums:false ctx s p MGet);
 			type_call ctx e el t p