From 11bdf879626c616b968e5040abe368611fdf8a87 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:21:21 +0100 Subject: [PATCH] fixed files form Closure #11 --- projects/Closure/11/com/google/javascript/jscomp/TypeCheck.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/projects/Closure/11/com/google/javascript/jscomp/TypeCheck.java b/projects/Closure/11/com/google/javascript/jscomp/TypeCheck.java index ae8a320..e428dfa 100644 --- a/projects/Closure/11/com/google/javascript/jscomp/TypeCheck.java +++ b/projects/Closure/11/com/google/javascript/jscomp/TypeCheck.java @@ -1311,8 +1311,6 @@ private void visitGetProp(NodeTraversal t, Node n, Node parent) { if (childType.isDict()) { report(t, property, TypeValidator.ILLEGAL_PROPERTY_ACCESS, "'.'", "dict"); - } else if (n.getJSType() != null && parent.isAssign()) { - return; } else if (validator.expectNotNullOrUndefined(t, n, childType, "No properties on this expression", getNativeType(OBJECT_TYPE))) { checkPropertyAccess(childType, property.getString(), t, n);