0642e7a245
Closes #44362. Bug: https://github.com/dart-lang/sdk/issues/44362 Change-Id: Id54de1848e6af1108956476e241bab5c0ed96a4b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/177124 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
14 lines
300 B
Dart
14 lines
300 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.
|
|
|
|
foo<X>(X? x) {
|
|
if (x is int) {
|
|
bar(x);
|
|
}
|
|
}
|
|
|
|
bar<Y>(dynamic y) {}
|
|
|
|
main() {}
|