dart-sdk/tests/web/dynamic_generic_method_resolution_test.dart
Mark Zhou af24e995c9 [ddc] Attaching default type arg member signatures to JS native types.
Fixes 'member not found' issues arising from accessing default type arguments from JS literals.

Change-Id: I7cdfddcd70ee42a2941c8cb666570e161077281b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307513
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2023-06-07 17:57:26 +00:00

12 lines
442 B
Dart

// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Tests that generic function invocations have their default type arguments
// resolved in a dynamic call when the type argument is a JS entity.
void main() {
dynamic arrayLiteral = [];
arrayLiteral.map((v) => '$v');
}