blob: b6f7b7969d1fe3aaa27a976e07421c0a699a8208 [file] [log] [blame]
import self as self;
import "dart:core" as core;
typedef Reducer<S extends core::Object> = (S, dynamic) S;
class A extends core::Object {
synthetic constructor •() void
: super core::Object::•()
method call(dynamic a, dynamic b) dynamic {
return a;
static method foo<S extends core::Object>((self::foo::S, dynamic) self::foo::S v) void {}
static method main() void {
self::foo<core::String>(let final (dynamic, dynamic) dynamic #t1 = let final self::A #t2 = new self::A::•() in #t2.==(null) ?{(dynamic, dynamic) → dynamic} null : #t2.{self::A::call} in let<BottomType> _ = null in invalid-expression "pkg/front_end/testcases/bug32629.dart:18:47: Error: A value of type '(dynamic, dynamic) \u8594 dynamic' can't be assigned to a variable of type '(dart.core::String, dynamic) \u8594 dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to '(dart.core::String, dynamic) \u8594 dart.core::String'.
foo<String>(new /*@error=InvalidAssignment*/A());