Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 278172 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/core/tests/compiler/regression/BasicResolveTests.java (+17 lines)
Lines 1714-1717 Link Here
1714
			);
1714
			);
1715
	}
1715
	}
1716
	
1716
	
1717
	public void testbug278172() {
1718
		this.runNegativeTest(
1719
					new String[] {
1720
							"Z.js",
1721
							"/**\n" +
1722
							"* @param {boolean} options\n" +
1723
							"*/\n" +
1724
							"function foo(options) {\n" +
1725
								"options = options || {};\n" +
1726
								"if (!options.bar)\n" +
1727
								"options.bar = 42;\n" +
1728
							"}"
1729
					},
1730
					""
1731
			);
1732
	}
1733
	
1717
}
1734
}

Return to bug 278172