Permalink
Browse files

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

  • Loading branch information...
1 parent a4c0033 commit 9773bc33dce834b738ead39a34cf3474d6fadfb1 cjaun committed Apr 27, 2011
@@ -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()
+ );
+ }
}

0 comments on commit 9773bc3

Please sign in to comment.