 Chromium Code Reviews
 Chromium Code Reviews Issue 11361059:
  Fix issue 6472 that exhibited a few crashing bugs in dart2js.  (Closed) 
  Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
    
  
    Issue 11361059:
  Fix issue 6472 that exhibited a few crashing bugs in dart2js.  (Closed) 
  Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/| Index: lib/compiler/implementation/universe/partial_type_tree.dart | 
| =================================================================== | 
| --- lib/compiler/implementation/universe/partial_type_tree.dart (revision 14453) | 
| +++ lib/compiler/implementation/universe/partial_type_tree.dart (working copy) | 
| @@ -63,7 +63,9 @@ | 
| // TODO(kasperl): Move this to the Selector class? | 
| ClassElement selectorType(Selector selector) { | 
| DartType type = selector.receiverType; | 
| - return (type != null) ? type.element : compiler.objectClass; | 
| + if (type == null) return compiler.objectClass; | 
| + if (type.element.isTypedef()) return compiler.functionClass; | 
| 
ahe
2012/11/05 08:33:32
I think this deserves a TODO. You're throwing away
 
ngeoffray
2012/11/05 10:51:03
Done.
 | 
| + return type.element; | 
| } | 
| /** |