*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / Assignment.java
index 5f7c560..ba59094 100644 (file)
 package net.sourceforge.phpdt.internal.compiler.ast;
 
 import net.sourceforge.phpdt.internal.compiler.IAbstractSyntaxTreeVisitor;
-import net.sourceforge.phpdt.internal.compiler.codegen.*;
-import net.sourceforge.phpdt.internal.compiler.flow.*;
-import net.sourceforge.phpdt.internal.compiler.lookup.*;
+import net.sourceforge.phpdt.internal.compiler.codegen.CodeStream;
+import net.sourceforge.phpdt.internal.compiler.flow.FlowContext;
+import net.sourceforge.phpdt.internal.compiler.flow.FlowInfo;
+import net.sourceforge.phpdt.internal.compiler.lookup.BaseTypeBinding;
+import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
+import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
 
 public class Assignment extends Expression {
 
@@ -74,7 +77,7 @@ public class Assignment extends Expression {
                // may require to widen the rhs expression at runtime
                if ((expression.isConstantValueOfTypeAssignableToType(expressionTb, this.lhsType)
                        || (this.lhsType.isBaseType() && BaseTypeBinding.isWidening(this.lhsType.id, expressionTb.id)))
-                       || (scope.areTypesCompatible(expressionTb, this.lhsType))) {
+                       || (BlockScope.areTypesCompatible(expressionTb, this.lhsType))) {
                        expression.implicitWidening(this.lhsType, expressionTb);
                        return this.lhsType;
                }