[333781] Properties defined with associative arrays not being inferred
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/BasicResolveTests.java b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/BasicResolveTests.java
index 6427011..ae871d9 100644
--- a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/BasicResolveTests.java
+++ b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/BasicResolveTests.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2005, 2010 IBM Corporation and others.
+ * Copyright (c) 2005, 2011 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -1767,6 +1767,24 @@
 			);
 	}
 	
+	public void testbug333781() {
+		this.runNegativeTest(
+					new String[] {
+							"Z.js",
+							"var com = {};\n" +
+							"com.meth1 = function(){};\n" +
+							"com[\"meth2\"] = function(){};\n" +
+							"com.att1 = 1;\n" +
+							"com[\"att2\"] = 2;\n" +
+							"com.meth1();\n" +
+							"com.meth2;" +
+							"com.att1;\n" +
+							"com.att2;"
+					},
+					""
+			);
+	}
+	
 	public void testbug324241() {
 		this.runNegativeTest(
 					new String[] {