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

Unified Diff: frog/library.dart

Issue 8457007: Better runtime type checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged, and fix typo in member name 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: frog/library.dart
diff --git a/frog/library.dart b/frog/library.dart
index 8dd89df66a402fef8ae21b031f9a01b9ac9bee63..fd1b4a2eac650421797f46c81d9e1ac7b7173675 100644
--- a/frog/library.dart
+++ b/frog/library.dart
@@ -114,7 +114,7 @@ class Library {
final type = new DefinedType(name, this, def, false);
type.addMethod('\$call', func);
type.members['\$call'].resolve(inType);
- // Functions should implement Function. See "Function Types" in the spec.
+ // Function types implement the Function interface.
type.interfaces = [world.functionType];
return type;
}

Powered by Google App Engine
This is Rietveld 408576698