From 08ec0fe519ff91d3144090f7c8c6ab1fe22aa68a Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:24:51 +0100 Subject: [PATCH] fixed files form Closure #111 --- .../jscomp/type/ClosureReverseAbstractInterpreter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/Closure/111/com/google/javascript/jscomp/type/ClosureReverseAbstractInterpreter.java b/projects/Closure/111/com/google/javascript/jscomp/type/ClosureReverseAbstractInterpreter.java index 1706e34..e3c599d 100644 --- a/projects/Closure/111/com/google/javascript/jscomp/type/ClosureReverseAbstractInterpreter.java +++ b/projects/Closure/111/com/google/javascript/jscomp/type/ClosureReverseAbstractInterpreter.java @@ -51,7 +51,8 @@ public class ClosureReverseAbstractInterpreter new RestrictByTrueTypeOfResultVisitor() { @Override protected JSType caseTopType(JSType topType) { - return topType; + return topType.isAllType() ? + getNativeType(ARRAY_TYPE) : topType; } @Override