4f586e265e
Change-Id: I85aba2501a7b8a911e122f0a802dfc21b7e87e1e Reviewed-on: https://dart-review.googlesource.com/51620 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
18 lines
498 B
Plaintext
18 lines
498 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
typedef Reducer<S extends core::Object = dynamic> = (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 = dynamic>((self::foo::S, dynamic) → self::foo::S v) → void {}
|
|
static method main() → void {
|
|
self::foo<core::String>(new self::A::•());
|
|
}
|