57ac8b1ad9
Remove instrumentation for diagnostic messages, forwarding stubs and covariance, since all this information is present in the expectation files already. Change-Id: Idf6622f7eddba801761e13666b470ae6dcc9d59b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97106 Reviewed-by: Aske Simon Christensen <askesc@google.com>
18 lines
425 B
Dart
18 lines
425 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.
|
|
|
|
class A {
|
|
dynamic call(dynamic a, dynamic b) {
|
|
return a;
|
|
}
|
|
}
|
|
|
|
typedef S Reducer<S>(S a, dynamic b);
|
|
|
|
void foo<S>(Reducer<S> v) {}
|
|
|
|
void main() {
|
|
foo<String>(new /*@error=InvalidAssignment*/ A());
|
|
}
|