|
@@ -115,10 +115,13 @@ let rec can_be_used_as_value com e =
|
|
|
| TUnop((Increment | Decrement),_,_) when not (target_handles_unops com) -> raise Exit
|
|
|
| TNew _ when com.platform = Php -> raise Exit
|
|
|
| TFunction _ -> ()
|
|
|
- | TConst TNull when (match com.platform with Cs | Cpp | Java | Flash -> true | _ -> false) -> raise Exit
|
|
|
| _ -> Type.iter loop e
|
|
|
in
|
|
|
try
|
|
|
+ begin match com.platform,e.eexpr with
|
|
|
+ | (Cs | Cpp | Java | Flash),TConst TNull -> raise Exit
|
|
|
+ | _ -> ()
|
|
|
+ end;
|
|
|
loop e;
|
|
|
true
|
|
|
with Exit ->
|