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

Unified Diff: runtime/lib/error.dart

Issue 8637018: Implement type checking of map literals (issue 221). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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
Index: runtime/lib/error.dart
===================================================================
--- runtime/lib/error.dart (revision 1763)
+++ runtime/lib/error.dart (working copy)
@@ -26,6 +26,11 @@
throw const UnsupportedOperationException(
"TypeError can only be allocated by the VM");
}
+ static _throwNew(int location,
+ Object src_value,
+ String dst_type_name,
+ String dst_name)
+ native "TypeError_throwNew";
String toString() {
return "'$url': Failed type check: line $line pos $column: " +
"type '$srcType' is not assignable to type '$dstType' of '$dstName'.";

Powered by Google App Engine
This is Rietveld 408576698