| Index: frog/member.dart
|
| diff --git a/frog/member.dart b/frog/member.dart
|
| index f2481da856da483d5dbecefc5793b10d64831e46..570dce4f4d38ba7656c66c690bf87fdb2bd2da43 100644
|
| --- a/frog/member.dart
|
| +++ b/frog/member.dart
|
| @@ -35,13 +35,15 @@ class Parameter {
|
| definition.value.span.start == definition.span.start) {
|
| return;
|
| }
|
| - if (method.isAbstract) {
|
| - world.error('default value not allowed on abstract methods',
|
| - definition.span);
|
| - } else if (method.name == '\$call' && method.definition.body == null) {
|
| + if (method.name == '\$call') {
|
| // TODO(jimhug): Need simpler way to detect "true" function types vs.
|
| // regular methods being used as function types for closures.
|
| - world.error('default value not allowed on function type',
|
| + if (method.definition.body == null) {
|
| + world.error('default value not allowed on function type',
|
| + definition.span);
|
| + }
|
| + } else if (method.isAbstract) {
|
| + world.error('default value not allowed on abstract methods',
|
| definition.span);
|
| }
|
| } else if (isInitializer && !method.isConstructor) {
|
|
|