| Index: pkg/compiler/lib/src/js_backend/backend.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
|
| index 5f334e39e4335653c77f7b4e24d3904d812bc68a..e8f43caacde74554686dbbd4aa6dc6a1f375e545 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -2703,7 +2703,12 @@ class JavaScriptImpactTransformer extends ImpactTransformer {
|
| if (type.isTypedef) {
|
| backend.compiler.world.allTypedefs.add(type.element);
|
| }
|
| - if (type.isTypeVariable) {
|
| + if (type.isTypeVariable && type is! MethodTypeVariableType) {
|
| + // GENERIC_METHODS: The `is!` test above filters away method type
|
| + // variables, because they have the value `dynamic` with the
|
| + // incomplete support for generic methods offered with
|
| + // '--generic-method-syntax'. This must be revised in order to
|
| + // support generic methods fully.
|
| ClassElement cls = type.element.enclosingClass;
|
| backend.rti.registerClassUsingTypeVariableExpression(cls);
|
| registerBackendImpact(transformed, impacts.typeVariableExpression);
|
|
|