Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpberkland2008-09-29 16:34:37 +0000
committerpberkland2008-09-29 16:34:37 +0000
commit0914af826d0c2017fe06d30fc7584022a9710f9c (patch)
treea97afa7d5dec4b72286cf43e79a86f07215cf717
parent9dcdbe2403099216ec22d7229bea5ca7b3c2bd3f (diff)
downloadwebtools.jsdt.tests-JSDT303.tar.gz
webtools.jsdt.tests-JSDT303.tar.xz
webtools.jsdt.tests-JSDT303.zip
*** empty log message ***JSDT303
-rw-r--r--tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/InferTypesTests.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/InferTypesTests.java b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/InferTypesTests.java
index 70572c4..51c194f 100644
--- a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/InferTypesTests.java
+++ b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/InferTypesTests.java
@@ -712,4 +712,24 @@ public class InferTypesTests extends AbstractRegressionTest {
//
// );
// }
+
+
+ public void test083() {
+ CompilationUnitDeclaration declaration = this.runInferTest(
+ "function Car() {" +
+ " this.color = 'red';" +
+ " this.Move = function() { return \"I'm moving\"; };" +
+ "};" +
+ "Car.Stop = function() { return \"I'm not moving\"; };" +
+ "Car.engine = 'diesel';" +
+ "",
+ "X.js",
+ "class Car extends Object{\n static String engine;\n String color;\n Car()\n String Move()\n static String Stop()\n}\n",
+ getDefaultOptions()
+
+ );
+ }
+
+
+
}

Back to the top