| Index: frog/gen.dart
|
| diff --git a/frog/gen.dart b/frog/gen.dart
|
| index ceb3b403d573fa0f8ab66d3294b3e7fc4322af19..e16cae92da7609585af2af62cbc35fe1aa41bb0c 100644
|
| --- a/frog/gen.dart
|
| +++ b/frog/gen.dart
|
| @@ -2109,12 +2109,7 @@ class MethodGenerator implements TreeVisitor {
|
| constructorName = '';
|
| }
|
|
|
| - if (method.isStatic
|
| - && ((method.typeParameters === null && type.hasTypeParams)
|
| - || type is ParameterType)) {
|
| - world.error('using type parameter in static context', node.span);
|
| - return _makeMissingValue(constructorName);
|
| - } else if (type is ParameterType) {
|
| + if (type is ParameterType) {
|
| world.error('cannot instantiate a type parameter', node.span);
|
| return _makeMissingValue(constructorName);
|
| }
|
|
|