mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:47:13 +00:00
af24e995c9
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>
12 lines
442 B
Dart
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');
|
|
}
|