Index: sdk/lib/js/dart2js/js_dart2js.dart |
diff --git a/sdk/lib/js/dart2js/js_dart2js.dart b/sdk/lib/js/dart2js/js_dart2js.dart |
index f98b29d73cc69548c8d3a5ea0cc78df6b5588000..4b3e4a63d092e65ef16fd8f77f113c8c21f2d0fa 100644 |
--- a/sdk/lib/js/dart2js/js_dart2js.dart |
+++ b/sdk/lib/js/dart2js/js_dart2js.dart |
@@ -707,7 +707,7 @@ _callDartFunctionFastCaptureThis(callback, self, List arguments) { |
return Function.apply(callback, [self]..addAll(arguments)); |
} |
-Function allowInterop(Function f) { |
+Function /*=F*/ allowInterop/*<F extends Function>*/(Function /*=F*/ f) { |
if (JS('bool', 'typeof(#) == "function"', f)) { |
// Already supports interop, just use the existing function. |
return f; |