Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart |
index ea3ef3a1b8857b872b93738787d6893d271620cd..174bc54670108b14452a5b09d4b337062cfce69a 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart |
@@ -304,6 +304,8 @@ _checkAndCall(f, ftype, obj, typeArgs, args, name) => JS( |
'incorrect number of arguments to generic function ' + |
$typeName($ftype) + ', got <' + $typeArgs + '> expected ' + |
formalCount + '.'); |
+ } else { |
+ $ftype.checkBounds($typeArgs); |
} |
$ftype = $ftype.instantiate($typeArgs); |
} else if ($typeArgs != null) { |