diff options
author | pberkland | 2008-09-29 16:34:37 +0000 |
---|---|---|
committer | pberkland | 2008-09-29 16:34:37 +0000 |
commit | 0914af826d0c2017fe06d30fc7584022a9710f9c (patch) | |
tree | a97afa7d5dec4b72286cf43e79a86f07215cf717 | |
parent | 9dcdbe2403099216ec22d7229bea5ca7b3c2bd3f (diff) | |
download | webtools.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.java | 20 |
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() + + ); + } + + + } |