| Index: tool/input_sdk/private/ddc_runtime/classes.dart
|
| diff --git a/tool/input_sdk/private/ddc_runtime/classes.dart b/tool/input_sdk/private/ddc_runtime/classes.dart
|
| index 27c25427184a938f89ed3d74978f5d7a6189e45a..56920e109f8d93a0dc9f23f5df363ff23d63c392 100644
|
| --- a/tool/input_sdk/private/ddc_runtime/classes.dart
|
| +++ b/tool/input_sdk/private/ddc_runtime/classes.dart
|
| @@ -170,6 +170,17 @@ bind(obj, name, f) => JS('', '''(() => {
|
| return $f;
|
| })()''');
|
|
|
| +/// Instantiate a generic method.
|
| +///
|
| +/// We need to apply the type arguments both to the function, as well as its
|
| +/// associated function type.
|
| +gbind(f, @rest typeArgs) {
|
| + var result = JS('', '#(...#)', f, typeArgs);
|
| + var sig = JS('', '#(...#)', _getRuntimeType(f), typeArgs);
|
| + tag(result, sig);
|
| + return result;
|
| +}
|
| +
|
| // Set up the method signature field on the constructor
|
| _setMethodSignature(f, sigF) => JS('', '''(() => {
|
| $defineMemoizedGetter($f, $_methodSig, () => {
|
|
|