| Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| index f13f1fa0403643c18c75007ae1dad661cfeda01b..92f65afe2754b71240de1d29ff3aa8599ea02416 100644
|
| --- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| +++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| @@ -1469,7 +1469,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
|
| checkCondition(node.getCondition());
|
| Type left = typeOf(node.getThenExpression());
|
| Type right = typeOf(node.getElseExpression());
|
| - return types.leastUpperBound(left, right);
|
| + return types.intersection(left, right);
|
| }
|
|
|
| private Type checkCondition(DartExpression condition) {
|
|
|