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

Unified Diff: tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart

Issue 294293003: Allow delegate calls even though the target is not reflectable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: TearoffClosure is superclass of BoundClosure. Created 6 years, 7 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 | « sdk/lib/_internal/lib/js_mirrors.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart
diff --git a/tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart b/tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart
index 8875dc08a57beeb475ae06d6c423c91b25d6de42..46a97378d0e71b06fd3ba324dd2d29d76a95178e 100644
--- a/tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart
+++ b/tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart
@@ -22,5 +22,8 @@ class B {
main() {
Expect.equals(42, new B().foo(0));
- Expect.throws(() => new A().foo('foo'), (e) => e is UnsupportedError);
+ // In checked mode we should get a type error. In unchecked mode it should be
+ // an argument error.
+ Expect.throws(() => new A().foo('foo'),
+ (e) => e is ArgumentError || e is TypeError);
}
« no previous file with comments | « sdk/lib/_internal/lib/js_mirrors.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698