Chromium Code Reviews| 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_; |