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

Unified Diff: test/codegen/language/hashcode_dynamic_test.dart

Issue 1919173004: Use static dispatch for dynamic on Object methods (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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 | « test/codegen/expect/language-all.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/language/hashcode_dynamic_test.dart
diff --git a/test/codegen/language/issue11724_test.dart b/test/codegen/language/hashcode_dynamic_test.dart
similarity index 60%
copy from test/codegen/language/issue11724_test.dart
copy to test/codegen/language/hashcode_dynamic_test.dart
index 146a6fea0a5025ade7a9556817e09b73e12411ac..b705dd8afaaf98e39def9dde62120f5eff404962 100644
--- a/test/codegen/language/issue11724_test.dart
+++ b/test/codegen/language/hashcode_dynamic_test.dart
@@ -1,9 +1,10 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
void main() {
- Expect.throws(() => method(<int>[]), (e) => e is NoSuchMethodError);
+ dynamic x = 3;
+ Expect.equals(3, x.hashCode);
}
« no previous file with comments | « test/codegen/expect/language-all.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698