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

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: merged 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() {
jimhug 2011/11/11 15:02:02 Is this required or just good style?
Jennifer Messerly 2011/11/11 18:38:06 internalError has a return type of "void". If we c
+ 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; }
jimhug 2011/11/11 15:02:02 Same question here - can we use => on void methods
Jennifer Messerly 2011/11/11 18:38:06 Yup, you can use => on void methods if the RHS typ
List<Type> interfaces;
Type factory_;

Powered by Google App Engine
This is Rietveld 408576698