Files
sdk/pkg/front_end/testcases/general/bug32414a.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

20 lines
620 B
Plaintext

library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/bug32414a.dart:10:7: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
// b = 42;
// ^
//
import self as self;
import "dart:core" as core;
static method test() → void {
dynamic a = 5;
core::String* b = a.{core::Object::toString}();
b = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/bug32414a.dart:10:7: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
b = 42;
^" in 42 as{TypeError} core::String*;
}
static method main() → void {}