Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[343691] exception stack trace on $ as a type name

  • Loading branch information...
commit 9773bc33dce834b738ead39a34cf3474d6fadfb1 1 parent a4c0033
cjaun authored
View
23 ...st.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/InferTypesTests.java
@@ -1452,4 +1452,27 @@ public void test201() {
getDefaultOptions()
);
}
+
+ public void testBUG317281() {
+ CompilationUnitDeclaration declaration = this.runInferTest(
+ "function A$b(){\n"+
+ "}\n" +
+ "A$b.prototype.fun1 = function() {};\n",
+ "X.js",
+ "class A$b extends Object{\n void fun1()\n A$b()\n}\n",
+ getDefaultOptions()
+ );
+ }
+
+ public void testBUG343691() {
+ CompilationUnitDeclaration declaration = this.runInferTest(
+ "function $(){\n"+
+ "}\n" +
+ "$.hasData = function(element) {};\n" +
+ "$.prototype.jquery = \"\";\n",
+ "X.js",
+ "class $ extends Object{\n String jquery;\n $()\n static void hasData(element)\n}\n",
+ getDefaultOptions()
+ );
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.