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

Unified Diff: tests/language_strong/cast2_test.dart

Issue 2623053004: Fix noSuchMethod handling of methods that are also extension methods. Fix noSuchMethod handling of … (Closed)
Patch Set: Fix noSuchMethod handling of methods that are also extension methods. Fix noSuchMethod handling of … Created 3 years, 11 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 | « tests/corelib_strong/dynamic_nosuchmethod_test.dart ('k') | tests/lib_strong/collection/list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/cast2_test.dart
diff --git a/tests/language_strong/cast2_test.dart b/tests/language_strong/cast2_test.dart
index d67c89b76cf68c68d0b14eb7234faa7f424b5fa7..4f613b712a49d20bced2db5c5caf5f9b44c95d57 100644
--- a/tests/language_strong/cast2_test.dart
+++ b/tests/language_strong/cast2_test.dart
@@ -22,7 +22,7 @@ main() {
C oc = new C();
D od = new D();
- (oc as dynamic).bar; /// 01: runtime error
+ Expect.throws(() => (oc as dynamic).bar, (e) => e is NoSuchMethodError);
// Casts should always evaluate the left-hand side, if only for its effects.
oc.inc() as dynamic;
« no previous file with comments | « tests/corelib_strong/dynamic_nosuchmethod_test.dart ('k') | tests/lib_strong/collection/list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698