Files
sdk/pkg/front_end/testcases/nnbd/issue44362.dart
T
Dmitry Stefantsov 0642e7a245 [cfe] Deem all intersection types syntactically not nullable
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>
2020-12-29 09:58:35 +00:00

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() {}