 Chromium Code Reviews
 Chromium Code Reviews Issue 66033006:
  Check type bounds of redirecting factories (issue 14699).  (Closed) 
  Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
    
  
    Issue 66033006:
  Check type bounds of redirecting factories (issue 14699).  (Closed) 
  Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/| Index: runtime/vm/ast.h | 
| =================================================================== | 
| --- runtime/vm/ast.h (revision 30176) | 
| +++ runtime/vm/ast.h (working copy) | 
| @@ -377,8 +377,8 @@ | 
| const char* TypeName() const; | 
| virtual const Instance* EvalConstExpr() const { | 
| - // TODO(regis): What if the type is malbounded? | 
| - if (!type_.IsInstantiated() || type_.IsMalformed()) { | 
| + if (!type_.IsInstantiated() || | 
| + type_.IsMalformed() || type_.IsMalbounded()) { | 
| return NULL; | 
| } | 
| return &type(); |