[269203] Validation: Invalid "Cannot make a static reference to the non-static function" error when adding a function to an object
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 301aff8..7d1b378 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
@@ -1385,6 +1385,18 @@
 		"----------\n"
 			);
 	}
+	
+	public void testbug269203() {
+		this.runNegativeTest(
+					new String[] {
+							"Z.js",
+							"function Square() {}\n" +
+							"var sq = new Square();\n" +
+							"sq.area = function() {};"
+					},
+					""
+			);
+	}
 
 
 }
\ No newline at end of file