| 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 1ca3593b0e7cf4e0710d47a3d511ee05466988a6..e6a64192bc157bc25fe7e5e5c2f6f79d60d4c825 100644
|
| --- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| +++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| @@ -1860,7 +1860,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
|
| @Override
|
| public Type visitFunctionExpression(DartFunctionExpression node) {
|
| node.visitChildren(this);
|
| - Type result = ((Element) node.getElement()).getType();
|
| + Type result = node.getElement().getType();
|
| result.getClass(); // quick null check
|
| return result;
|
| }
|
|
|