e119ccad2a
Closes #43163. Bug: https://github.com/dart-lang/sdk/issues/43163 Change-Id: I55f51eee097a320dcc38cf54a41c9f6684b5dd59 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162505 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
35 lines
550 B
Dart
35 lines
550 B
Dart
// Copyright (c) 2020, 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.
|
|
|
|
T f<T>(T t) => t;
|
|
|
|
T g<T>(T? t) => t!;
|
|
|
|
T h<T extends Object>(T? t) => t!;
|
|
|
|
foo(dynamic d, void v, Object? onull, Object o, String? snull, String s) {
|
|
f(d);
|
|
f(v);
|
|
f(onull);
|
|
f(o);
|
|
f(snull);
|
|
f(s);
|
|
|
|
g(d);
|
|
g(v);
|
|
g(onull);
|
|
g(o);
|
|
g(snull);
|
|
g(s);
|
|
|
|
h(d);
|
|
h(v);
|
|
h(onull);
|
|
h(o);
|
|
h(snull);
|
|
h(s);
|
|
}
|
|
|
|
main() {}
|