### Eclipse Workspace Patch 1.0 #P org.eclipse.wst.jsdt.core Index: src/org/eclipse/wst/jsdt/core/infer/InferEngine.java =================================================================== RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/infer/InferEngine.java,v retrieving revision 1.29 diff -u -r1.29 InferEngine.java --- src/org/eclipse/wst/jsdt/core/infer/InferEngine.java 7 Jan 2009 20:16:59 -0000 1.29 +++ src/org/eclipse/wst/jsdt/core/infer/InferEngine.java 31 Mar 2009 20:43:59 -0000 @@ -49,6 +49,7 @@ import org.eclipse.wst.jsdt.internal.compiler.ast.StringLiteral; import org.eclipse.wst.jsdt.internal.compiler.ast.ThisReference; import org.eclipse.wst.jsdt.internal.compiler.ast.TrueLiteral; +import org.eclipse.wst.jsdt.internal.compiler.ast.UnaryExpression; import org.eclipse.wst.jsdt.internal.compiler.util.HashtableOfObject; import org.eclipse.wst.jsdt.internal.compiler.util.Util; @@ -959,6 +960,9 @@ return getTypeOf(((Assignment)expression).getExpression()); else if (expression instanceof FunctionExpression) return FunctionType; + else if(expression instanceof UnaryExpression) { + return getTypeOf(((UnaryExpression)expression).expression); + } return null; }