Explorar o código

TField might also be complex

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

+ 1 - 1
filters.ml

@@ -186,7 +186,7 @@ let promote_complex_rhs ctx e =
 	let rec is_complex e = match e.eexpr with
 		| TBlock _ | TSwitch _ | TIf _ | TTry _ | TCast(_,Some _) -> true
 		| TBinop(_,e1,e2) -> is_complex e1 || is_complex e2
-		| TParenthesis e | TMeta(_,e) | TCast(e, None) -> is_complex e
+		| TParenthesis e | TMeta(_,e) | TCast(e, None) | TField(e,_) -> is_complex e
 		| _ -> false
 	in
 	let rec loop f e = match e.eexpr with