Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Unified Diff: frog/analyze.dart

Issue 9463006: Fix issue 1833 by reporting an error if the type is not found. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/analyze.dart
===================================================================
--- frog/analyze.dart (revision 4560)
+++ frog/analyze.dart (working copy)
@@ -601,6 +601,9 @@
var type = resolveType(typeRef, true, true);
if (type.isTop) {
type = type.library.findTypeByName(constructorName);
+ if (type == null) {
+ world.error('cannot resolve type $constructorName', node.span);
+ }
constructorName = '';
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698