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>
12 lines
415 B
Plaintext
12 lines
415 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method foo<X extends core::Object? = dynamic>(self::foo::X? x) → dynamic {
|
|
if(x is{ForNonNullableByDefault} core::int) {
|
|
self::bar<dynamic>(x{self::foo::X? & core::int /* '?' & '!' = '!' */});
|
|
}
|
|
}
|
|
static method bar<Y extends core::Object? = dynamic>(dynamic y) → dynamic {}
|
|
static method main() → dynamic {}
|