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

Unified Diff: frog/type.dart

Issue 8534001: Adds typechecking of return values (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: better runtime checks 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/type.dart
diff --git a/frog/type.dart b/frog/type.dart
index aaa7cd6d7e22efff6411b806025a20f37dcd5898..b4fb7db3efd22a43aa8d0bfb24a47970d9797560 100644
--- a/frog/type.dart
+++ b/frog/type.dart
@@ -310,8 +310,9 @@ class ParameterType extends Type {
ParameterType(String name, this.typeParameter): super(name);
- Map<String, MethodMember> get constructors() =>
- world.internalError('no constructors on type parameters yet');
+ Map<String, MethodMember> get constructors() {
+ world.internalError('no constructors on type parameters yet');
+ }
MethodMember getCallMethod() => extendsType.getCallMethod();
@@ -528,7 +529,7 @@ class DefinedType extends Type {
// Type parent;
Type _parent;
Type get parent() => _parent;
- void set parent(Type p) => _parent = p;
+ void set parent(Type p) { _parent = p; }
List<Type> interfaces;
Type factory_;
« frog/lib/corelib_impl.dart ('K') | « frog/member.dart ('k') | frog/value.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698