| Index: pkg/compiler/lib/src/resolution/members.dart
|
| diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
|
| index 80d5b8246f3ac8f2960db028144e5d6f197d1b5b..2a394872c0f56b0aa346934b1a3deb2a268906b9 100644
|
| --- a/pkg/compiler/lib/src/resolution/members.dart
|
| +++ b/pkg/compiler/lib/src/resolution/members.dart
|
| @@ -2761,6 +2761,11 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
|
| } else if (target.isTypeVariable) {
|
| ClassElement cls = target.enclosingClass;
|
| assert(enclosingElement.enclosingClass == cls);
|
| + if (Elements.isInStaticContext(enclosingElement)) {
|
| + compiler.reportError(node,
|
| + MessageKind.TYPE_VARIABLE_WITHIN_STATIC_MEMBER,
|
| + {'typeVariableName': node.selector});
|
| + }
|
| registry.registerClassUsingVariableExpression(cls);
|
| registry.registerTypeVariableExpression();
|
| // Set the type of the node to [Type] to mark this send as a
|
|
|