Files
sdk/pkg/front_end/testcases/bug32414a.dart.strong.expect
T
Jens Johansen dab228e55f Save problems in ast - fasta changes
Change-Id: Id38f5e7495c245e5a7b161b55c58b8826c146a80
Reviewed-on: https://dart-review.googlesource.com/c/90000
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2019-01-17 10:46:13 +00:00

22 lines
788 B
Plaintext

library;
//
// Problems in library:
//
// pkg/front_end/testcases/bug32414a.dart:10:7: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
// Try changing the type of the left hand side, or casting the right hand side to '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<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/bug32414a.dart:10:7: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
Try changing the type of the left hand side, or casting the right hand side to 'String'.
b = 42;
^" in 42 as{TypeError} core::String;
}
static method main() → void {}