Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tests/language_strong/callable_test.dart

Issue 2774623004: Fix for dcall on callable class (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/callable_test.dart
diff --git a/tests/language_strong/callable_test.dart b/tests/language_strong/callable_test.dart
index ede9fa499344356f0590a153674a702472f63e9a..4a64fab18014677c8ecb45da5adb41e9d6bdbcc8 100644
--- a/tests/language_strong/callable_test.dart
+++ b/tests/language_strong/callable_test.dart
@@ -21,7 +21,7 @@ class Y {
class Z<T> {
final T value;
Z(this.value);
- call() => value;
+ T call() => value;
static int staticMethod(int x) => x + 1;
}
@@ -29,6 +29,7 @@ class Z<T> {
typedef F(int x);
typedef G(String y);
typedef H();
+typedef T I<T>();
main() {
X x = new X();
@@ -44,8 +45,7 @@ main() {
var z = new Z<int>(123);
Expect.equals(z(), 123);
- // TODO(jmesserly): this test doesn't work yet.
- // Expect.equals((z as dynamic)(), 123);
+ Expect.equals((z as dynamic)(), 123);
Expect.equals(Y.staticMethod(6), 7);
Expect.equals(Z.staticMethod(6), 7);
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698