Files
sdk/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.expect
T
Dmitry Stefantsov c191551fac [cfe] Remove BottomType
TEST=Covered by existing tests.

Change-Id: Ied8be1874164e68e0a3a48e1b2f9a33310071381
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183009
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-02-24 13:21:55 +00:00

33 lines
1.1 KiB
Plaintext

library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'.
// z(42); // Error.
// ^
//
import self as self;
import "dart:core" as core;
class C<X extends (self::C::X%) →? void = (Never) →? void> extends core::Object {
generic-covariant-impl field self::C::X% x;
constructor •(self::C::X% x) → self::C<self::C::X%>
: self::C::x = x, super core::Object::•()
;
method m() → void {
(Never) →? void z = self::b ?{(Never) →? void} this.{self::C::x} : #C1;
if(z.{core::Object::==}(null))
return;
z{(Never) → void}.call(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'.
z(42); // Error.
^" in 42 as{TypeError,ForNonNullableByDefault} Never);
}
}
static field core::bool b = true;
static method f(core::Object o) → void {}
static method main() → dynamic {}
constants {
#C1 = tearoff self::f
}