Skip to content

Commit

Permalink
Fix language_2/generic_no_such_method_dispatcher_test
Browse files Browse the repository at this point in the history
Change-Id: I5d048d47bb10e66caef483f47a9b8245fc45d3d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115901
Auto-Submit: Mayank Patke <fishythefish@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
  • Loading branch information
fishythefish authored and commit-bot@chromium.org committed Sep 6, 2019
1 parent f5b5327 commit add83ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/language_2/generic_no_such_method_dispatcher_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ class C {
}

main() {
var a = new A();
dynamic a = new A();
for (var i = 0; i < 20; ++i) Expect.equals(123, a.foo<int, A>());
Expect.throws(() => (a.foo)());
Expect.throws(() => (a.foo)<int, A>());
Expect.equals("123", (a.foo).toString());

var b = new B();
dynamic b = new B();
for (var i = 0; i < 20; ++i) {
Expect.equals(2, b.bar<int, A>(1));
Expect.equals(2, b.bar(1));
Expand All @@ -63,7 +63,7 @@ main() {
}

// Test type, named, and positional arguments.
var c = new C([int, A], [100], {"n1": 101, "n2": 102});
dynamic c = new C([int, A], [100], {"n1": 101, "n2": 102});
for (var i = 0; i < 20; ++i) {
Expect.equals(123, c.bar<int, A>(100, n1: 101, n2: 102));
Expect.equals(123, c.bar<int, A>(100, n2: 102, n1: 101));
Expand Down

0 comments on commit add83ad

Please sign in to comment.