Files
sdk/tests/language_2/vm/regress_33073_test.dart
T
Samir Jindel 0cafdc4fdb [vm] Fix handling of all-dynamic type arguments in noSuchMethod.
This fixes #33073 for all code which is relevant to Dart 2.

Change-Id: I3956bf9f2bb06f0e67c8b643e8a7765f28464f5f
Reviewed-on: https://dart-review.googlesource.com/54260
Commit-Queue: Samir Jindel <sjindel@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
2018-05-10 17:06:42 +00:00

19 lines
571 B
Dart

// Copyright (c) 2018, 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.
// Verify that the correct number of type arguments is observed in the
// Invocation object for invocations that pass all-dynamic type arguments.
import "package:expect/expect.dart";
class C {
dynamic noSuchMethod(Invocation invoke) {
Expect.equals(1, invoke.typeArguments.length);
}
}
void main() {
((new C()) as dynamic).foo<dynamic>();
}