fix for illegal code construct that the type that is declared in the
jsodc points to the variable it is declared on (and then later on used)
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo/RLocalType.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo/RLocalType.java
index 1257501..fccb035 100644
--- a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo/RLocalType.java
+++ b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo/RLocalType.java
@@ -88,7 +88,7 @@
 			}

 			IValueReference fromChild = getChildFromDeclaredTypes(name,

 					declaredValue.getDeclaredTypes(), set);

-			if (fromChild == null) {

+			if (fromChild == null && !PROTOTYPE_PROPERTY.equals(name)) {

 				IValueReference prototype = irType.functionValue

 						.getChild(PROTOTYPE_PROPERTY);

 				fromChild = prototype.getChild(name);