Files
sdk/pkg/front_end/testcases/runtime_checks/dynamic_invocation.dart
Johnni Winther a3a9006f2c [cfe] Remove instrumentation
This removes the support for instrumentation from the inferrer and merges the local and top level inferrer, whose only difference was whether instrumentation was enabled or not. The instrumentation system hasn't be updated for a long time and no longer carries its weight.


Change-Id: If999aff8ca302164a60b3c44d8b31595306c7042
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/451261
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2025-09-25 02:20:13 -07:00

31 lines
495 B
Dart

// Copyright (c) 2017, 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.
library test;
class C<T> {
void f1(T x) {}
void f2(int x) {}
}
class D extends C<num> {
void f1(covariant int x) {}
}
void g1(dynamic d) {
d.f1(1.5);
}
void g2(dynamic d) {
d.f2(1.5);
}
void test() {
g1(new C<int>());
g2(new C());
g1(new D());
}
main() {}